2020-03-17 11:17:48 +01:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
histoiredunpied-log-volume:
|
|
|
|
name: histoiredunpied-log-volume
|
2020-04-01 12:10:31 +02:00
|
|
|
histoiredunpied-stats:
|
|
|
|
name: histoiredunpied-stats
|
2020-02-11 09:02:51 +01:00
|
|
|
|
|
|
|
services:
|
2020-03-23 22:59:25 +01:00
|
|
|
histoiredunpied-autopush:
|
|
|
|
container_name: histoiredunpied-autopush
|
2020-05-21 17:13:57 +02:00
|
|
|
image: registry.weko.io/autopush
|
2020-04-05 10:04:19 +02:00
|
|
|
restart: always
|
2020-03-24 12:06:47 +01:00
|
|
|
depends_on:
|
|
|
|
- histoiredunpied
|
2020-03-23 22:59:25 +01:00
|
|
|
environment:
|
|
|
|
GIT_USER: ${GIT_USER}
|
|
|
|
GIT_URL: ${GIT_URL}
|
|
|
|
GIT_REPOSITORY: ${GIT_REPOSITORY}
|
|
|
|
DOWNLOAD_URL: ${DOWNLOAD_URL}
|
|
|
|
WEBDAV_URL: ${WEBDAV_URL}
|
2020-03-24 10:14:26 +01:00
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
|
|
|
|
|
|
|
histoiredunpied-logs:
|
|
|
|
container_name: histoiredunpied-logs
|
2020-05-21 17:13:57 +02:00
|
|
|
image: registry.weko.io/goaccess
|
2020-04-05 10:04:19 +02:00
|
|
|
restart: always
|
2020-03-24 12:06:47 +01:00
|
|
|
depends_on:
|
|
|
|
- histoiredunpied-autopush
|
2020-03-24 10:14:26 +01:00
|
|
|
volumes:
|
|
|
|
- histoiredunpied-log-volume:/var/log/nginx
|
2020-04-01 12:10:31 +02:00
|
|
|
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
2020-03-24 10:14:26 +01:00
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2020-03-23 22:59:25 +01:00
|
|
|
|
2020-02-11 09:02:51 +01:00
|
|
|
histoiredunpied:
|
|
|
|
container_name: ${NAME}
|
2020-05-21 17:13:57 +02:00
|
|
|
image: registry.weko.io/histoiredunpied
|
2020-04-05 10:04:19 +02:00
|
|
|
restart: always
|
2020-02-11 09:02:51 +01:00
|
|
|
environment:
|
2020-03-17 11:17:48 +01:00
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
volumes:
|
|
|
|
- histoiredunpied-log-volume:/var/log/nginx
|
2020-04-01 12:10:31 +02:00
|
|
|
- histoiredunpied-stats:/usr/share/nginx/html/stats
|
2020-02-11 09:02:51 +01:00
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
2020-03-11 16:20:33 +01:00
|
|
|
|
2020-02-16 16:44:05 +01:00
|
|
|
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
|
2020-04-09 11:11:36 +02:00
|
|
|
traefik.http.routers.histoiredunpied.entrypoints: "websecure"
|
|
|
|
traefik.http.routers.histoiredunpied.tls.certResolver: "letsencrypt"
|
2020-03-11 16:20:33 +01:00
|
|
|
|
2020-04-09 11:11:36 +02:00
|
|
|
# Redirect https://www to https://
|
2020-03-11 16:20:33 +01:00
|
|
|
traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)"
|
2020-04-09 11:11:36 +02:00
|
|
|
traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "websecure"
|
|
|
|
traefik.http.routers.histoiredunpied-redirect-www.tls.certResolver: "letsencrypt"
|
2020-03-11 16:20:33 +01:00
|
|
|
traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker"
|
|
|
|
|
2020-03-21 09:24:02 +01:00
|
|
|
com.centurylinklabs.watchtower.enable: true
|
2020-02-11 09:02:51 +01:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: traefik
|