version: "3.7" volumes: histoiredunpied-log-volume: name: histoiredunpied-log-volume histoiredunpied-src: name: histoiredunpied-src services: histoiredunpied-autopush: container_name: histoiredunpied-autopush image: registry.lamelio.fr/autopush 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.lamelio.fr/goaccess depends_on: - histoiredunpied-autopush volumes: - histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-src:/usr/share/nginx/html labels: com.centurylinklabs.watchtower.enable: true histoiredunpied: container_name: ${NAME} image: registry.lamelio.fr/histoiredunpied environment: - TZ=${TIMEZONE} volumes: - histoiredunpied-log-volume:/var/log/nginx labels: traefik.enable: "true" # Redirect http:// to https:// traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)" traefik.http.routers.histoiredunpied.entrypoints: "web" traefik.http.routers.histoiredunpied.middlewares: "redirect-https@docker" traefik.http.routers.histoiredunpied-https.rule: "Host(`${URL}`)" traefik.http.routers.histoiredunpied-https.entrypoints: "websecure" traefik.http.routers.histoiredunpied-https.tls.certResolver: "letsencrypt" # Redirect http://www to https:// traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)" traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "web" traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker" # Redirect https://www to https:// traefik.http.routers.histoiredunpied-redirect-www-https.rule: "Host(`www.${URL}`)" traefik.http.routers.histoiredunpied-redirect-www-https.entrypoints: "websecure" traefik.http.routers.histoiredunpied-redirect-www-https.tls.certResolver: "letsencrypt" traefik.http.routers.histoiredunpied-redirect-www-https.middlewares: "redirect-www@docker" com.centurylinklabs.watchtower.enable: true networks: default: external: name: traefik