Initial docker compose files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user