-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (55 loc) · 1.12 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
version: '3.5'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
command: yarn start
ports:
- '3000:3000'
- '9222:9222'
volumes:
- ./frontend/:/app/
- /app/node_modules/
stdin_open: true
environment:
NODE_ENV: development
REACT_APP_BACKEND_URL: http://localhost:8000/
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: &backend backend
command: python manage.py runserver --noreload 0.0.0.0:8000
ports:
- '8000:8000'
- '5678:5678'
volumes:
- ./backend/:/app/
depends_on:
- db
env_file: .env
worker:
image: *backend
command: celery --app=backend worker --hostname=worker@%h -P solo --loglevel=INFO
ports:
- '5679:5678'
volumes:
- ./backend/:/app/
depends_on:
- db
- redis
env_file: .env
db:
image: postgres:11.3
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis:5.0
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: