fix: stable compose project name, drop fixed container_name

Avoids global name conflicts when compose project name differs from
orphaned containers (playgroundschwenkonline vs playground).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-07-05 16:20:44 +02:00
parent d3136c2a8c
commit b206790732
+2 -2
View File
@@ -1,3 +1,5 @@
name: playground
services: services:
playground: playground:
@@ -6,7 +8,6 @@ services:
- ./public:/usr/share/nginx/html:ro - ./public:/usr/share/nginx/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/security-headers.conf:/etc/nginx/conf.d/security-headers.conf:ro - ./nginx/security-headers.conf:/etc/nginx/conf.d/security-headers.conf:ro
container_name: playground
restart: unless-stopped restart: unless-stopped
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@@ -26,7 +27,6 @@ services:
- WEBHOOK_SECRET=${WEBHOOK_SECRET} - WEBHOOK_SECRET=${WEBHOOK_SECRET}
- DEPLOY_GIT_TOKEN=${DEPLOY_GIT_TOKEN:-} - DEPLOY_GIT_TOKEN=${DEPLOY_GIT_TOKEN:-}
- DEPLOY_BRANCH=${DEPLOY_BRANCH:-main} - DEPLOY_BRANCH=${DEPLOY_BRANCH:-main}
container_name: playground-deploy-hook
restart: unless-stopped restart: unless-stopped
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"