Files

46 lines
1015 B
YAML

services:
proxy:
image: traefik:3.7
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 80:80
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=false
api:
build: ./api
volumes:
- storage:/app/storage
labels:
- traefik.enable=true
- traefik.http.routers.localthreat-api.rule=Host(`api.localthreat.local.crz.li`)
develop:
watch:
- initial_sync: true
action: sync
path: ./api
target: /app
ignore:
- node_modules
client:
build: ./client
environment:
VITE_API_URL: http://api.localthreat.local.crz.li
labels:
- traefik.enable=true
- traefik.http.routers.localthreat-client.rule=Host(`localthreat.local.crz.li`)
develop:
watch:
- initial_sync: true
action: sync
path: ./client
target: /app
ignore:
- node_modules
volumes:
storage: {}