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:
|
volumes:
|
||||||
lowtechweb-log:
|
lowtechweb-log:
|
||||||
|
@ -19,6 +19,9 @@ services:
|
||||||
GIT_REPOSITORY: ${GIT_REPOSITORY}
|
GIT_REPOSITORY: ${GIT_REPOSITORY}
|
||||||
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
||||||
WEBDAV_URL: ${WEBDAV_URL}
|
WEBDAV_URL: ${WEBDAV_URL}
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: true
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
|
||||||
|
@ -31,6 +34,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- lowtechweb-log:/var/log/nginx
|
- lowtechweb-log:/var/log/nginx
|
||||||
- lowtechweb-stats:/usr/share/nginx/html/stats
|
- lowtechweb-stats:/usr/share/nginx/html/stats
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: true
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
|
||||||
|
@ -38,23 +43,16 @@ services:
|
||||||
container_name: ${NAME}
|
container_name: ${NAME}
|
||||||
image: registry.weko.io/lowtechweb
|
image: registry.weko.io/lowtechweb
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
|
||||||
- TZ=${TIMEZONE}
|
|
||||||
volumes:
|
volumes:
|
||||||
- lowtechweb-log:/var/log/nginx
|
- lowtechweb-log:/var/log/nginx
|
||||||
- lowtechweb-stats:/usr/share/nginx/html/stats
|
- lowtechweb-stats:/usr/share/nginx/html/stats
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
|
|
||||||
traefik.http.routers.lowtechweb.rule: "Host(`${URL}`)"
|
traefik.http.routers.lowtechweb.rule: "Host(`${URL}`)"
|
||||||
traefik.http.routers.lowtechweb.entrypoints: "websecure"
|
traefik.http.routers.lowtechweb.entrypoints: "web"
|
||||||
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
|
com.centurylinklabs.watchtower.enable: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue