-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.09 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
# Docker compose file compatible with AWS Fargate i.e. no volumes
version: "3.8"
services:
web:
build:
context: "."
args:
- "FLASK_ENV=${FLASK_ENV:-development}"
command: flask run -h 0.0.0.0
ports:
- 5000:5000
env_file:
- ".env.dev"
depends_on:
- "redis"
worker:
build:
context: "."
args:
- "FLASK_ENV=${FLASK_ENV:-development}"
command: celery -A celery_worker.celery worker --loglevel=INFO
env_file:
- ".env.dev"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
stop_grace_period: 3s
depends_on:
- "web"
- "redis"
db:
env_file:
- ".env.dev"
image: postgres:13.4
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
redis:
env_file:
- ".env.dev"
image: "redis:6.2.5"
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
stop_grace_period: 3s
ports:
- 6379:6379
volumes:
- redis_data:/data
volumes:
redis_data:
postgres_data: