diff --git a/docker-compose.yml b/docker-compose.yml index 0f20080..cd3cb6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3.7" +version: "3.8" volumes: lowtechweb-log: @@ -19,6 +19,9 @@ services: GIT_REPOSITORY: ${GIT_REPOSITORY} DOWNLOAD_URL: ${DOWNLOAD_URL} WEBDAV_URL: ${WEBDAV_URL} + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro labels: com.centurylinklabs.watchtower.enable: true @@ -31,6 +34,8 @@ services: volumes: - lowtechweb-log:/var/log/nginx - lowtechweb-stats:/usr/share/nginx/html/stats + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro labels: com.centurylinklabs.watchtower.enable: true @@ -38,23 +43,16 @@ services: container_name: ${NAME} image: registry.weko.io/lowtechweb restart: always - environment: - - TZ=${TIMEZONE} volumes: - lowtechweb-log:/var/log/nginx - lowtechweb-stats:/usr/share/nginx/html/stats + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro labels: traefik.enable: "true" traefik.http.routers.lowtechweb.rule: "Host(`${URL}`)" - traefik.http.routers.lowtechweb.entrypoints: "websecure" - traefik.http.routers.lowtechweb.tls.certResolver: "letsencrypt" - - # Redirect https://www to https:// - traefik.http.routers.lowtechweb-redirect-www.rule: "Host(`www.${URL}`)" - traefik.http.routers.lowtechweb-redirect-www.entrypoints: "websecure" - traefik.http.routers.lowtechweb-redirect-www.tls.certResolver: "letsencrypt" - traefik.http.routers.lowtechweb-redirect-www.middlewares: "redirect-www@docker" + traefik.http.routers.lowtechweb.entrypoints: "web" com.centurylinklabs.watchtower.enable: true