foodotfiles/docker/korhonen.cc/docker-compose.toml

29 lines
943 B
TOML
Raw Normal View History

2022-03-23 16:44:59 +00:00
[services]
[services.nginx]
image = "nginx"
container_name = "korhonen.cc"
2022-03-24 08:26:23 +00:00
volumes = [
2022-03-25 16:09:30 +00:00
"/var/www/korhonen.cc:/korhonen.cc:ro",
2022-03-24 08:26:23 +00:00
"./nginx.conf:/etc/nginx/conf.d/default.conf",
]
2022-03-23 16:44:59 +00:00
networks = ["proxy"]
restart = "unless-stopped"
labels = [
"traefik.enable=true",
2022-03-24 08:26:23 +00:00
"traefik.docker.network=proxy",
2022-03-23 16:44:59 +00:00
"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",
2022-03-23 16:44:59 +00:00
"traefik.http.routers.korhonen.entrypoints=https",
2022-03-24 19:03:57 +00:00
"traefik.http.routers.korhonen.middlewares=secHeaders@file,www2non-www@file,compress@file",
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
2022-03-23 16:44:59 +00:00
"traefik.http.routers.korhonen.service=korhonen",
"traefik.http.services.korhonen.loadbalancer.server.port=80",
]
[networks]
[networks.proxy]
external = true