Files
buque/examples/docker-compose.example.yml
2025-11-02 01:39:56 +01:00

29 líneas
609 B
YAML

version: '3.8'
services:
web:
image: nginx:alpine
container_name: example-web
restart: unless-stopped
expose:
- "80"
environment:
# Required for nginx-proxy
- VIRTUAL_HOST=example.com
- VIRTUAL_PORT=80
# Optional: Let's Encrypt SSL
- LETSENCRYPT_HOST=example.com
- LETSENCRYPT_EMAIL=admin@example.com
volumes:
- ./html:/usr/share/nginx/html:ro
networks:
- nginx-proxy
labels:
# Buque labels for tracking
- "buque.environment=example"
- "buque.managed=true"
networks:
nginx-proxy:
external: true