-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yaml
64 lines (62 loc) · 1.3 KB
/
docker-compose.dev.yaml
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
version: "3.4"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 8080:8080
env_file:
- dev.env
stop_signal: SIGKILL
volumes:
- .:/workspace:cached
- frontend_vscode_server:/root/.vscode-server
- frontend_node_modules:/workspace/frontend/node_modules
depends_on:
- backend
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 8000:8000
env_file:
- dev.env
stop_signal: SIGKILL
volumes:
- .:/workspace:cached
- backend_vscode_server:/root/.vscode-server
- backend_deployment:/workspace/backend/_deployment
depends_on:
- db
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
db:
image: postgres:15
volumes:
- postgres_data_dev:/var/lib/postgresql/data
env_file:
- dev.env
restart: always
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
volumes:
postgres_data_dev:
backend_vscode_server:
backend_deployment:
frontend_vscode_server:
frontend_node_modules: