29 líneas
609 B
YAML
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
|