feat: Update docker-compose
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
206005dc91
commit
2ff1d20163
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue