chore(docker): Produktion ohne Caddy, App für Nginx Proxy Manager auf :3000
Made-with: Cursor
This commit is contained in:
+4
-32
@@ -1,8 +1,8 @@
|
||||
# Production Docker Compose für Stargirlnails Kiel
|
||||
# Mit Nginx Reverse Proxy und Let's Encrypt SSL-Zertifikaten
|
||||
# TLS und Reverse Proxy erfolgen extern (z. B. Nginx Proxy Manager).
|
||||
# Upstream im Proxy: http://<Host>:3000 (Port bei Bedarf per Firewall absichern).
|
||||
|
||||
services:
|
||||
# Hauptanwendung
|
||||
stargirlnails:
|
||||
build: .
|
||||
container_name: stargirlnails-app
|
||||
@@ -12,45 +12,17 @@ services:
|
||||
- NODE_ENV=production
|
||||
- DISABLE_DUPLICATE_CHECK=false
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- storage-data:/app/.storage
|
||||
networks:
|
||||
- stargirlnails-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
# Keine Abhängigkeit zu nginx, um Dependency-Zyklen zu vermeiden
|
||||
|
||||
# Caddy Reverse Proxy mit automatischem SSL
|
||||
caddy:
|
||||
image: caddy:2-alpine
|
||||
container_name: stargirlnails-caddy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- caddy-data:/data
|
||||
- caddy-config:/config
|
||||
networks:
|
||||
- stargirlnails-network
|
||||
depends_on:
|
||||
- stargirlnails
|
||||
|
||||
# Volumes für persistente Daten
|
||||
volumes:
|
||||
storage-data:
|
||||
driver: local
|
||||
caddy-data:
|
||||
driver: local
|
||||
caddy-config:
|
||||
driver: local
|
||||
|
||||
# Netzwerk für interne Kommunikation
|
||||
networks:
|
||||
stargirlnails-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user