-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
57 lines (50 loc) · 1019 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
55
56
57
version: '2'
services:
postgres:
image: 'postgres:9.5'
env_file:
- '.env'
volumes:
- 'postgres:/var/lib/postgresql/data'
ports:
- '5432:5432'
server:
build: backend/.
command: >
gunicorn -b 0.0.0.0:8000
-w 4
--access-logfile -
--reload
"server.app:create_app()"
env_file:
- '.env'
volumes:
- './backend:/server'
ports:
- '8000:8000'
frontend:
build: './frontend'
command: npm run start
stdin_open: true
ports:
- '3000:3000'
volumes:
- './frontend/:/frontend'
- '/frontend/node_modules'
celery:
build: backend/.
command: celery worker -l info -A server.blueprints.main.tasks
env_file:
- '.env'
volumes:
- './backend:/server'
redis:
image: 'redis:3.0-alpine'
command: redis-server --requirepass templocalpass
volumes:
- 'redis:/var/lib/redis/data'
ports:
- '6379:6379'
volumes:
postgres:
redis: