Initial docker compose files

This commit is contained in:
2025-06-12 00:09:45 +02:00
commit 194b674c7d
7 changed files with 219 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
version: '3.7'
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