-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (55 loc) · 1.13 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.4'
services:
db:
restart: always
image: postgres:9.6-alpine
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
env_file:
- env.production
worker:
build:
context: .
dockerfile: Dockerfile
target: worker
image: wort-worker
env_file:
- iam/wort_s3.env
command: >
celery -A wort.blueprints.compute.tasks
worker
-Q compute_small,compute_medium,compute_large
--without-gossip --without-mingle --without-heartbeat
-l INFO -c 1
web:
restart: always
build:
context: .
dockerfile: Dockerfile
target: web
command: >
gunicorn -b 0.0.0.0:5000
--access-logfile -
--reload
"wort.app:create_app()"
environment:
PYTHONUNBUFFERED: 'true'
FLASK_APP: 'wortapp.py'
ports:
- "8082:5000"
links:
- db
depends_on:
- db
- redis
env_file:
- env.production
volumes:
- .:/app/wort
redis:
restart: always
image: redis:latest
ports:
- "6379"
volumes:
- ./data/redis:/data