65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
version: "3.7"
|
|
|
|
volumes:
|
|
lowtechweb-log:
|
|
name: lowtechweb-log
|
|
lowtechweb-stats:
|
|
name: lowtechweb-stats
|
|
|
|
services:
|
|
lowtechweb-autopush:
|
|
container_name: lowtechweb-autopush
|
|
image: registry.weko.io/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.weko.io/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.weko.io/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
|