This repository was archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
85 lines (78 loc) · 1.52 KB
/
docker-compose.dev.yml
File metadata and controls
85 lines (78 loc) · 1.52 KB
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
76
77
78
79
80
81
82
83
84
85
version: '3.7'
services:
api:
container_name: api
build:
context: ./backend
dockerfile: ./Dockerfile-dev
volumes:
- ./backend:/code
- static_data:/vol/web
- media_data:/vol/web/media
- /code/venv
ports:
- "8000:8000"
env_file:
- .env.dev
depends_on:
- db
- redis
entrypoint: [ "entrypoint-dev.sh" ]
db:
container_name: db
image: postgres:13.1
env_file:
- .env.dev
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
container_name: redis
image: redis:6.0.9-alpine3.12
celery:
container_name: celery
build:
context: ./backend
dockerfile: ./Dockerfile-dev
volumes:
- ./backend:/code
- /code/venv
env_file:
- .env.dev
depends_on:
- redis
entrypoint: [ "entrypoint-celery.sh" ]
celery-beat:
container_name: celery-beat
build:
context: ./backend
dockerfile: ./Dockerfile-dev
volumes:
- ./backend:/code
- /code/venv
env_file:
- .env.dev
depends_on:
- redis
entrypoint: [ "entrypoint-celery-beat.sh" ]
app:
container_name: app
build:
context: ./frontend
target: install
volumes:
- ./frontend:/app
- /app/node_modules/
ports:
- "8080:8080"
env_file:
- .env.dev
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- api
- db
command: ["npm", "run", "serve"]
volumes:
static_data:
media_data:
postgres_data: