Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-website/infrastructure/docker-compose.production.yml
T

43 lines
1009 B
YAML

# HiveGrid Website — Production (Scaleway)
#
# Caddy reverse proxy + Next.js standalone server.
# Single-project deployment — no staging/production split.
services:
caddy:
image: caddy:2-alpine
container_name: hivegrid-website-caddy
restart: unless-stopped
depends_on:
web:
condition: service_started
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ../origin.pem:/etc/caddy/origin.pem:ro
- ../origin.key:/etc/caddy/origin.key:ro
- caddy_data:/data
- caddy_config:/config
web:
image: ${REGISTRY}/hivegrid-website:${IMAGE_TAG:-latest}
container_name: hivegrid-website-web
restart: unless-stopped
environment:
- PORT=3000
- HOSTNAME=0.0.0.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 3s
start_period: 15s
retries: 3
expose:
- "3000"
volumes:
caddy_data:
caddy_config: