Slides/docker-compose.yml

43 lines
987 B
YAML
Raw Normal View History

2020-10-19 12:19:49 +02:00
version: "3.8"
2020-05-10 15:40:26 +02:00
volumes:
slides-log:
name: slides-log
slides-stats:
name: slides-stats
services:
slides-logs:
container_name: slides-logs
2021-04-12 17:38:52 +02:00
image: registry.weko.io/goaccess:1.4.6
2020-05-10 15:40:26 +02:00
restart: always
volumes:
- slides-log:/var/log/nginx
- slides-stats:/usr/share/nginx/html/stats
2020-10-19 12:19:49 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2020-05-10 15:40:26 +02:00
labels:
com.centurylinklabs.watchtower.enable: true
slides:
container_name: ${NAME}
2020-10-19 12:19:49 +02:00
image: registry.weko.io/slides
2020-05-10 15:40:26 +02:00
restart: always
volumes:
- slides-log:/var/log/nginx
- slides-stats:/usr/share/nginx/html/stats
2020-10-19 12:19:49 +02:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2020-05-10 15:40:26 +02:00
labels:
traefik.enable: "true"
traefik.http.routers.slides.rule: "Host(`${URL}`)"
2020-10-19 12:19:49 +02:00
traefik.http.routers.slides.entrypoints: "web"
2020-05-10 15:40:26 +02:00
com.centurylinklabs.watchtower.enable: true
networks:
default:
external:
name: traefik