update docker compose

This commit is contained in:
2025-02-24 20:12:28 +01:00
parent 2462ab66fe
commit 71111e15ae

View File

@@ -1,16 +1,4 @@
services: services:
traefik:
image: traefik:v2.5
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
db: db:
image: postgres image: postgres
environment: environment:
@@ -28,11 +16,9 @@ services:
- ./packages/web:/app - ./packages/web:/app
working_dir: /app working_dir: /app
command: bun run dev --host command: bun run dev --host
ports:
- "80:5173"
env_file: .env env_file: .env
labels:
- "traefik.enable=true"
- "traefik.http.routers.localhost.rule=Host(`localhost`)"
- "traefik.http.services.personal-website.loadbalancer.server.port=5173"
develop: develop:
watch: watch:
- action: sync - action: sync