-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
40 lines (38 loc) · 990 Bytes
/
docker-compose.dev.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
services:
web:
image: patientor-frontend-dev
build:
context: ./patientor/
dockerfile: dev.Dockerfile
# WATCH DEVELOPMENT MODE
# docker compose -f docker-compose.dev.yml watch
develop:
watch:
- action: sync
path: ./patientor/src
target: usr/src/app/src
# ignore:
# - node_modules/
environment:
- VITE_BACKEND_URL=http://localhost:8080/api
container_name: patientor-frontend-container-dev
server:
image: patientor-backend-dev
build:
context: ./patientor-backend/
dockerfile: dev.Dockerfile
develop:
watch:
- action: sync
path: ./patientor-backend
target: usr/src/app
container_name: patientor-backend-container-dev
nginx:
image: nginx:1.20.1
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf:ro # read-only
ports:
- 8080:80
container_name: reverse-proxy-patientor-dev
depends_on:
- web