fix: remove custom Traefik labels and port mapping for Coolify deployment
- Remove conflicting Traefik labels that caused redirect loop with Coolify auto-generated labels - Remove port mapping (Coolify handles routing via Traefik) - Remove external coolify network (Coolify adds it automatically) - Remove ./ volume mount from backend (incompatible with Coolify build context)
This commit is contained in:
@@ -1,24 +1,9 @@
|
||||
services:
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- 3000:3000
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.hms-gzip.compress=true
|
||||
- traefik.http.middlewares.hms-redirect.redirectscheme.scheme=https
|
||||
- traefik.http.routers.hms-http.entryPoints=http
|
||||
- traefik.http.routers.hms-http.middlewares=hms-redirect
|
||||
- traefik.http.routers.hms-http.rule=Host(`hms.media-on.de`) && PathPrefix(`/`)
|
||||
- traefik.http.routers.hms-https.entryPoints=https
|
||||
- traefik.http.routers.hms-https.middlewares=hms-gzip
|
||||
- traefik.http.routers.hms-https.rule=Host(`hms.media-on.de`) && PathPrefix(`/`)
|
||||
- traefik.http.routers.hms-https.tls=true
|
||||
- traefik.http.routers.hms-https.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.hms.loadbalancer.server.port=3000
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test:
|
||||
@@ -30,7 +15,6 @@ services:
|
||||
start_period: 15s
|
||||
networks:
|
||||
- hms-network
|
||||
- coolify
|
||||
backend:
|
||||
build: ./backend
|
||||
depends_on:
|
||||
@@ -53,8 +37,6 @@ services:
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||
- MCP_AUTH_TOKEN=${MCP_AUTH_TOKEN:-}
|
||||
volumes:
|
||||
- ./:/data/repo
|
||||
- ./images:/data/images
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
@@ -108,8 +90,6 @@ services:
|
||||
networks:
|
||||
hms-network:
|
||||
driver: bridge
|
||||
coolify:
|
||||
external: true
|
||||
volumes:
|
||||
postgres_data: null
|
||||
redis_data: null
|
||||
|
||||
Reference in New Issue
Block a user