-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (50 loc) · 1006 Bytes
/
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
vaccines:
restart: always
build: ./
ports:
- "9000:9000"
volumes:
- /data/assets:/usr/src/app/asset_files
- /data/tmp:/usr/src/app/tmp
- .:/usr/src/app
links:
- redis:redis
- postgres:postgres
env_file: .env
environment:
- PYTHONUNBUFFERED=1
command: /usr/local/bin/gunicorn vaccines.wsgi:application -w 2 -b :9000
postgres:
restart: always
image: postgres:latest
volumes:
- /data/postgresql:/var/lib/postgresql
ports:
- "5432:5432"
redis:
restart: always
image: redis:latest
ports:
- "6379:6379"
celery:
restart: always
build: ./
links:
- postgres:postgres
- redis:redis
volumes_from:
- vaccines
env_file: .env
command: celery -A vaccines.celery worker --concurrency=3
flower:
restart: always
build: ./
ports:
- "5555:5555"
links:
- postgres:postgres
- redis:redis
volumes_from:
- vaccines
env_file: .env
command: celery flower -A vaccines.celery --address=0.0.0.0 --port=5555