-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.5 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
services:
shibumi-store:
image: shibumi-store:latest
build:
context: .
dockerfile: Dockerfile
container_name: shibumi-store
stdin_open: true
tty: true
ports:
- "8000:8000"
depends_on:
- mongo
- redis
environment:
- APP_NAME=shibumi-store
- APP_WORKERS=4
- APP_DEBUG=true
- APP_OPENAPI_URL=/openapi.json
- AUTH_SECRET_KEY= # Add your secret key here
- AUTH_REFRESH_SECRET_KEY= # Add your refresh secret key here
- AUTH_ALGORITHM=HS256
- AUTH_ACCESS_TOKEN_EXPIRE_MINUTES=15
- AUTH_REFRESH_TOKEN_EXPIRE_MINUTES=1440
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_USER=root
- MONGODB_PASSWORD=root
- MONGODB_NAME=shop
- MONGO_AUTH_SOURCE=admin
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=root
- SEND_GRID_API_KEY= # Add your SendGrid API key here
- SEND_GRID_SENDER_EMAIL= # Add your SendGrid sender email here
volumes:
- .:/src
mongo:
image: bitnami/mongodb:8.0.4
container_name: mongodb
restart: always
ports:
- "27017:27017"
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongo
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_ROOT_USERNAME=root
- MONGODB_ROOT_PASSWORD=root
- MONGODB_REPLICA_SET_KEY=replicasetkey123
redis:
image: redis:7.4.1
restart: always
ports:
- "6379:6379"
command: /bin/sh -c "redis-server --requirepass root"