2022-02-26 13:25:54 +02:00
|
|
|
[services]
|
|
|
|
|
|
|
|
[services.nginx]
|
|
|
|
image = "fraoustin/fancyindex"
|
|
|
|
container_name = "index.korhonen.cc"
|
|
|
|
environment = ["DISABLE_AUTH=true", "CONTAINER_TIMEZONE=\"Europe/Helsinki\""]
|
|
|
|
volumes = ["/docker/index.korhonen.cc:/share"]
|
|
|
|
networks = ["proxy"]
|
|
|
|
restart = "unless-stopped"
|
|
|
|
labels = [
|
|
|
|
"traefik.enable=true",
|
2022-03-24 10:26:23 +02:00
|
|
|
"traefik.docker.network=proxy",
|
2022-02-26 13:25:54 +02:00
|
|
|
"traefik.http.routers.index-redirect.entrypoints=http",
|
|
|
|
"traefik.http.routers.index-redirect.rule=Host(`index.korhonen.cc`)",
|
|
|
|
"traefik.http.routers.index-redirect.middlewares=http2https@file",
|
|
|
|
"traefik.http.routers.index.entrypoints=https",
|
2022-03-24 21:03:57 +02:00
|
|
|
"traefik.http.routers.index.middlewares=secHeaders@file,compress@file",
|
2022-02-26 13:25:54 +02:00
|
|
|
"traefik.http.routers.index.rule=Host(`index.korhonen.cc`)",
|
|
|
|
"traefik.http.routers.index.service=index",
|
|
|
|
"traefik.http.services.index.loadbalancer.server.port=80",
|
|
|
|
]
|
|
|
|
|
|
|
|
[networks]
|
|
|
|
|
|
|
|
[networks.proxy]
|
|
|
|
external = true
|