37 lines
991 B
YAML
37 lines
991 B
YAML
services:
|
|
server:
|
|
develop:
|
|
watch:
|
|
- action: rebuild
|
|
path: ./server
|
|
ignore:
|
|
- bin/
|
|
- "**/*_test.go"
|
|
webapp:
|
|
build:
|
|
target: dev
|
|
ports: !override
|
|
- "127.0.0.1:${DEV_WEB_PORT:-5173}:5173"
|
|
environment:
|
|
API_PROXY_TARGET: http://server: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: ./webapp/src
|
|
target: /app/src
|
|
initial_sync: true
|
|
- action: sync
|
|
path: ./webapp/index.html
|
|
target: /app/index.html
|
|
initial_sync: true
|
|
- action: rebuild
|
|
path: ./webapp/package.json
|
|
- action: rebuild
|
|
path: ./webapp/pnpm-lock.yaml
|
|
- action: rebuild
|
|
path: ./webapp/vite.config.ts
|
|
- action: rebuild
|
|
path: ./webapp/tsconfig.json
|