-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
54 lines (51 loc) · 1.33 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
services:
backend:
restart: "no"
volumes:
- ./backend/app:/app/app
build:
args:
INSTALL_DEV: true
develop:
watch:
- action: sync
path: backend/app/
target: /app/app/
- action: rebuild
path: backend/pyproject.toml
command: ["fastapi", "dev", "--host", "0.0.0.0", "--port", "8000", "app/main.py"]
labels:
caddy_0: http://localhost
caddy_0.@match.path: /api /api/* /docs /docs/* /redoc /redoc/*
caddy_0.reverse_proxy_0: "@match backend:8000"
frontend:
image: '${DOCKER_IMAGE_FRONTEND?Variable not set}:${TAG-latest}'
restart: "always"
networks:
- caddy
develop:
watch:
- action: sync
path: frontend/src/
target: /app/src/
- action: rebuild
path: frontend/package.json
- action: rebuild
path: frontend/pnpm-lock.yaml
command: ["pnpm", "dev", "--port", "5173", "--host", "0.0.0.0"]
env_file:
- .env
volumes:
- ./frontend:/app
- ./shared:/app/src/lib/assets/shared
- notused:/app/node_modules
build:
context: .
dockerfile: frontend.Dockerfile
target: dev
platform: linux/amd64
labels:
caddy_0: http://localhost
caddy_0.reverse_proxy_1: "frontend:5173"
volumes:
notused: