-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
35 lines (34 loc) · 1 KB
/
docker-compose.dev.yml
File metadata and controls
35 lines (34 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
version: '2.2'
services:
backend:
command: dev
volumes:
# Mount the source in the container for hot reloading.
- "./backend/index.js:/usr/src/app/index.js:ro"
nginx:
# Use image that excludes frontend assets, and have a separate
# frontend service.
image: nginx:1-alpine
volumes:
- "./nginx/development.conf:/etc/nginx/nginx.conf:ro"
- "./case-images:/case-images"
# NGINX will complain if the frontend or backend are not already started.
depends_on:
frontend:
condition: service_healthy
backend:
condition: service_healthy
frontend:
build:
context: frontend
dockerfile: Dockerfile.dev
# Mount the source in the container for hot reloading.
volumes:
- "./frontend/src:/usr/src/app/src"
- "./frontend/public:/usr/src/app/public"
environment:
CHOKIDAR_USEPOLLING: "true"
healthcheck:
test: ["CMD", "wget", "http://frontend:3000", "-O", "/dev/null"]
timeout: 1s
retries: 5