37 lines
1008 B
YAML
37 lines
1008 B
YAML
services:
|
|
backend:
|
|
develop:
|
|
watch:
|
|
- action: rebuild
|
|
path: ./backend
|
|
ignore:
|
|
- bin/
|
|
- "**/*_test.go"
|
|
frontend:
|
|
build:
|
|
target: dev
|
|
ports: !override
|
|
- "127.0.0.1:${DEV_WEB_PORT:-5173}:5173"
|
|
environment:
|
|
API_PROXY_TARGET: http://backend:8080
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:5173').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
|
|
develop:
|
|
watch:
|
|
- action: sync
|
|
path: ./frontend/src
|
|
target: /app/src
|
|
initial_sync: true
|
|
- action: sync
|
|
path: ./frontend/index.html
|
|
target: /app/index.html
|
|
initial_sync: true
|
|
- action: rebuild
|
|
path: ./frontend/package.json
|
|
- action: rebuild
|
|
path: ./frontend/pnpm-lock.yaml
|
|
- action: rebuild
|
|
path: ./frontend/vite.config.ts
|
|
- action: rebuild
|
|
path: ./frontend/tsconfig.json
|