version: "3.7" volumes: histoiredunpied-log-volume: name: histoiredunpied-log-volume histoiredunpied-stats: name: histoiredunpied-stats services: histoiredunpied-autopush: container_name: histoiredunpied-autopush image: registry.weko.io/autopush restart: always depends_on: - histoiredunpied environment: GIT_USER: ${GIT_USER} GIT_URL: ${GIT_URL} GIT_REPOSITORY: ${GIT_REPOSITORY} DOWNLOAD_URL: ${DOWNLOAD_URL} WEBDAV_URL: ${WEBDAV_URL} labels: com.centurylinklabs.watchtower.enable: true histoiredunpied-logs: container_name: histoiredunpied-logs image: registry.weko.io/goaccess restart: always depends_on: - histoiredunpied-autopush volumes: - histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-stats:/usr/share/nginx/html/stats labels: com.centurylinklabs.watchtower.enable: true histoiredunpied: container_name: ${NAME} image: registry.weko.io/histoiredunpied restart: always environment: - TZ=${TIMEZONE} volumes: - histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-stats:/usr/share/nginx/html/stats labels: traefik.enable: "true" traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)" traefik.http.routers.histoiredunpied.entrypoints: "websecure" traefik.http.routers.histoiredunpied.tls.certResolver: "letsencrypt" # Redirect https://www to https:// traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)" traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "websecure" traefik.http.routers.histoiredunpied-redirect-www.tls.certResolver: "letsencrypt" traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker" com.centurylinklabs.watchtower.enable: true networks: default: external: name: traefik