# Production Docker Compose für Stargirlnails Kiel # TLS und Reverse Proxy erfolgen extern (z. B. Nginx Proxy Manager). # Upstream im Proxy: http://:3000 (Port bei Bedarf per Firewall absichern). services: stargirlnails: build: . container_name: stargirlnails-app env_file: - .env environment: - NODE_ENV=production - DISABLE_DUPLICATE_CHECK=false restart: unless-stopped ports: - "3000:3000" volumes: - storage-data:/app/.storage healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Bereits angelegtes/importiertes Volume nutzen (vermeidet die Compose-Warnung # "already exists but was not created by Docker Compose"). # Neuinstallation: zuerst `docker volume create beauty-bookings_storage-data` # (Name = _storage-data, hier: beauty-bookings). volumes: storage-data: name: beauty-bookings_storage-data external: true