dev docker compose

This commit is contained in:
2025-01-08 03:52:53 +01:00
parent 74080ffceb
commit f136766bd0
3 changed files with 50 additions and 8 deletions

View File

@@ -23,21 +23,22 @@ services:
- db-data:/var/lib/postgresql/data
sveltekit:
build: ./packages/web
restart: unless-stopped
image: oven/bun
volumes:
- ./packages/web:/app
working_dir: /app
command: bun run dev --host
environment:
- ORIGIN=http://localhost
labels:
- "traefik.enable=true"
- "traefik.http.routers.personal-website.rule=Host(`stanrunge.dev`)"
- "traefik.http.routers.localhost.rule=Host(`localhost`)"
- "traefik.http.services.personal-website.loadbalancer.server.port=3000"
- "traefik.http.services.personal-website.loadbalancer.server.port=5173"
develop:
watch:
- action: rebuild
- action: sync
path: ./packages/web
ignore:
- node_modules/
target: /app
volumes:
db-data: