mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
29 lines
943 B
TOML
29 lines
943 B
TOML
[services]
|
|
|
|
[services.nginx]
|
|
image = "nginx"
|
|
container_name = "korhonen.cc"
|
|
volumes = [
|
|
"/var/www/korhonen.cc:/korhonen.cc:ro",
|
|
"./nginx.conf:/etc/nginx/conf.d/default.conf",
|
|
]
|
|
networks = ["proxy"]
|
|
restart = "unless-stopped"
|
|
labels = [
|
|
"traefik.enable=true",
|
|
"traefik.docker.network=proxy",
|
|
"traefik.http.routers.korhonen-redirect.entrypoints=http",
|
|
"traefik.http.routers.korhonen-redirect.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
|
|
"traefik.http.routers.korhonen-redirect.middlewares=www2non-www@file,http2https@file",
|
|
"traefik.http.routers.korhonen.entrypoints=https",
|
|
"traefik.http.routers.korhonen.middlewares=secHeaders@file,www2non-www@file,compress@file",
|
|
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
|
|
"traefik.http.routers.korhonen.service=korhonen",
|
|
"traefik.http.services.korhonen.loadbalancer.server.port=80",
|
|
]
|
|
|
|
[networks]
|
|
|
|
[networks.proxy]
|
|
external = true
|