mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 15:30:19 +00:00
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
version: "3.9"
|
|
services:
|
|
web:
|
|
image: nginx
|
|
container_name: nginx
|
|
volumes:
|
|
- /home/ubuntu/docker/nginx:/etc/nginx/templates
|
|
environment:
|
|
- NGINX_HOST=nginx.jimsgarage.co.uk
|
|
- NGINX_PORT=80
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.nginx.entrypoints=http"
|
|
- "traefik.http.routers.nginx.rule=Host(`nginx.jimsgarage.co.uk`)"
|
|
- "traefik.http.middlewares.nginx-https-redirect.redirectscheme.scheme=https"
|
|
- "traefik.http.routers.nginx.middlewares=nginx-https-redirect"
|
|
- "traefik.http.routers.nginx-secure.entrypoints=https"
|
|
- "traefik.http.routers.nginx-secure.rule=Host(`nginx.jimsgarage.co.uk`)"
|
|
- "traefik.http.routers.nginx-secure.tls=true"
|
|
- "traefik.http.routers.nginx-secure.service=nginx"
|
|
- "traefik.http.services.nginx.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.nginx-secure.middlewares=authelia@docker"
|
|
- "traefik.docker.network=proxy"
|
|
networks:
|
|
proxy:
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|