docker-files/test/docker-compose.yaml
2025-06-11 22:30:15 +00:00

20 lines
667 B
YAML

services:
nginx:
image: nginx:latest # Use the latest official Nginx image
container_name: nginx_test_site
networks:
- frontend
labels:
- traefik.enable=true
- traefik.http.routers.nginx-http.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)
- traefik.http.routers.nginx-http.entrypoints=web
- traefik.http.routers.nginx-https.tls=true
- traefik.http.routers.nginx-https.tls.certresolver=cloudflare
- traefik.http.routers.nginx-https.entrypoints=websecure
- traefik.http.routers.nginx-https.rule=Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)
restart: always
networks:
frontend:
external: true