version: "3.7" volumes: lowtechweb-log: name: lowtechweb-log lowtechweb-stats: name: lowtechweb-stats services: lowtechweb-autopush: container_name: lowtechweb-autopush image: registry.lamelio.fr/autopush restart: always depends_on: - lowtechweb 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 lowtechweb-logs: container_name: lowtechweb-logs image: registry.lamelio.fr/goaccess restart: always depends_on: - lowtechweb-autopush volumes: - lowtechweb-log:/var/log/nginx - lowtechweb-stats:/usr/share/nginx/html/stats labels: com.centurylinklabs.watchtower.enable: true lowtechweb: container_name: ${NAME} image: registry.lamelio.fr/lowtechweb restart: always environment: - TZ=${TIMEZONE} volumes: - lowtechweb-log:/var/log/nginx - lowtechweb-stats:/usr/share/nginx/html/stats 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" com.centurylinklabs.watchtower.enable: true networks: default: external: name: traefik