histoiredunpied/docker-compose.yml

74 lines
2.5 KiB
YAML
Raw Normal View History

2020-03-17 11:17:48 +01:00
version: "3.7"
volumes:
histoiredunpied-log-volume:
name: histoiredunpied-log-volume
histoiredunpied-src:
name: histoiredunpied-src
2020-02-11 09:02:51 +01:00
services:
histoiredunpied-autopush:
container_name: histoiredunpied-autopush
image: registry.lamelio.fr/kosssi/autopush
2020-03-24 12:06:47 +01:00
depends_on:
- histoiredunpied
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
histoiredunpied-logs:
container_name: histoiredunpied-logs
image: registry.lamelio.fr/kosssi/goaccess
environment:
FILE_LOG: /var/log/nginx/access.log
FILE_OUTPUT: /usr/share/nginx/html/stats.html
2020-03-24 12:06:47 +01:00
depends_on:
- histoiredunpied-autopush
volumes:
- histoiredunpied-log-volume:/var/log/nginx
- histoiredunpied-src:/usr/share/nginx/html
labels:
com.centurylinklabs.watchtower.enable: true
2020-02-11 09:02:51 +01:00
histoiredunpied:
container_name: ${NAME}
2020-03-21 09:25:13 +01:00
image: registry.lamelio.fr/kosssi/histoiredunpied
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
- histoiredunpied-src:/usr/share/nginx/html
2020-02-11 09:02:51 +01:00
labels:
traefik.enable: "true"
2020-03-11 16:20:33 +01:00
# Redirect http:// to https://
2020-02-16 16:44:05 +01:00
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
2020-02-11 09:02:51 +01:00
traefik.http.routers.histoiredunpied.entrypoints: "web"
traefik.http.routers.histoiredunpied.middlewares: "redirect-https@docker"
2020-03-11 16:20:33 +01:00
2020-02-16 16:44:05 +01:00
traefik.http.routers.histoiredunpied-https.rule: "Host(`${URL}`)"
2020-02-11 09:02:51 +01:00
traefik.http.routers.histoiredunpied-https.entrypoints: "websecure"
traefik.http.routers.histoiredunpied-https.tls.certResolver: "letsencrypt"
2020-03-11 16:20:33 +01:00
# Redirect http://www to https://
traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)"
traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "web"
traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker"
# Redirect https://www to https://
traefik.http.routers.histoiredunpied-redirect-www-https.rule: "Host(`www.${URL}`)"
traefik.http.routers.histoiredunpied-redirect-www-https.entrypoints: "websecure"
traefik.http.routers.histoiredunpied-redirect-www-https.tls.certResolver: "letsencrypt"
traefik.http.routers.histoiredunpied-redirect-www-https.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