-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.override.LOCAL_COPY.yml
More file actions
42 lines (40 loc) · 1 KB
/
Copy pathcompose.override.LOCAL_COPY.yml
File metadata and controls
42 lines (40 loc) · 1 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
services:
nginx:
container_name: nginx
image: nginx
volumes:
- ./services/nginx/dev/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
depends_on:
- backend
- frontend
backend:
container_name: backend
build:
context: ./services/backend
dockerfile: Dockerfile
env_file:
- ./.env.dev
# mount the volumes so we can change code and hot reload
volumes:
- ./services/backend:/backend
ports:
- 8010:8010
command: ["python", "manage.py", "run", "-h", "0.0.0.0", "-p", "8010"]
healthcheck:
test: ["CMD-SHELL", "curl --fail http://0.0.0.0:8010/healthcheck || exit 1"]
interval: 1m30s
start_period: 15s
retries: 3
timeout: 10s
frontend:
container_name: frontend
build:
context: ./services
dockerfile: ./nginx/Dockerfile
target: frontend-dependencies
volumes:
- ./services/frontend:/frontend
- /frontend/node_modules
command: npm run dev -- --host