-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.68 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.7'
services:
nginx:
image: nginx:1.17
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
depends_on:
- backend
- frontend
redis:
image: redis
ports:
- 6379:6379
postgres:
image: postgres:12
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
ports:
- '5432:5432'
volumes:
- db-data:/var/lib/postgresql/data:cached
worker:
build:
context: backend
dockerfile: Dockerfile
command: celery --app app.tasks worker --loglevel=DEBUG -Q main-queue -c 1
flower:
image: mher/flower
command: flower --broker=redis://redis:6379/0 --port=5555
ports:
- 5555:5555
depends_on:
- "redis"
frontend:
build:
context: frontend
dockerfile: Dockerfile
stdin_open: true
volumes:
- './frontend:/app:cached'
- './frontend/node_modules:/app/node_modules:cached'
backend:
build:
context: backend
dockerfile: Dockerfile
command: python app/main.py
tty: true
volumes:
- ./backend:/app/:cached
- ./.docker/.ipython:/root/.ipython:cached
environment:
PYTHONPATH: .
DATABASE_URL: 'postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres'
AWS_ACCESS_KEY_ID: '${AWS_ACCESS_KEY_ID}'
AWS_SECRET_ACCESS_KEY: '${AWS_SECRET_ACCESS_KEY}'
GOOGLE_MAPS_KEY: '${GOOGLE_MAPS_KEY}'
SINFO_CLIENT_ID: '${SINFO_CLIENT_ID}'
SINFO_CLIENT_SECRET: '${SINFO_CLIENT_SECRET}'
SINFO_X_API_KEY: '${SINFO_X_API_KEY}'
depends_on:
- "postgres"
- "redis"
volumes:
db-data: