Move Traefik file routes to Docker labels
Some checks failed
Deploy Stacks / deploy-prod (push) Failing after 6s
Deploy Stacks / deploy-dev (push) Has been cancelled

This commit is contained in:
2026-02-05 22:04:28 -05:00
parent 0970e97a8f
commit eed6196da5
22 changed files with 165 additions and 517 deletions

View File

@@ -0,0 +1,24 @@
services:
service-map:
build: .
container_name: service-map
restart: unless-stopped
labels:
- "com.ghost.tel/stack-type=dev-only"
- "traefik.enable=true"
- "traefik.http.routers.service-map.rule=Host(`map.ghost.tel`)"
- "traefik.http.routers.service-map.entrypoints=https"
- "traefik.http.routers.service-map.tls.certresolver=http"
- "traefik.http.routers.service-map.middlewares=dashboard-auth@docker"
- "traefik.http.services.service-map.loadbalancer.server.port=3000"
environment:
- HOSTS=ubuntu-dev,ubuntu-prod
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ~/.ssh:/root/.ssh:ro
networks:
- web
networks:
web:
external: true