site-deploy/docker-compose.yml

58 lines
1.3 KiB
YAML
Raw Normal View History

version: '3.3'
services:
webhook:
2020-07-05 15:56:22 +00:00
image: cryptkiddie2/webhook-docker:latest
restart: always
labels:
2020-07-05 16:38:38 +00:00
- traefik.frontend.rule=Host:${WEBHOOK_DOMAIN}
2020-07-05 15:56:22 +00:00
- traefik.port=9000
- traefik.docker.network=web
networks:
- extern
expose:
2020-07-05 15:56:22 +00:00
- 9000
volumes:
2020-07-05 15:56:22 +00:00
- ${DATA_ROOT}/webhook/:/webhook
- ${DATA_ROOT}/repo/:/repo
command: [-hooks, /webhook/hooks.json, -verbose]
jekyll:
image: jekyll/jekyll
restart: always
2020-07-05 16:26:33 +00:00
command: [/usr/jekyll/bin/jekyll, build, --source, /repo/, --destination, /static, --watch]
volumes:
2020-07-05 15:56:22 +00:00
- ${DATA_ROOT}/repo/:/repo
- ${DATA_ROOT}/static/:/static
nginx:
image: nginx:latest
restart: always
volumes:
2020-07-05 15:56:22 +00:00
- ${DATA_ROOT}/static/:/usr/share/nginx/html
2020-07-05 16:01:19 +00:00
- ./configs/nginx:/etc/nginx
labels:
2020-07-06 08:58:19 +00:00
- traefik.frontend.rule=Host:chaospott.de
2020-07-05 15:56:22 +00:00
- traefik.port=80
- traefik.docker.network=web
networks:
- extern
expose:
- 80
2020-07-06 08:58:19 +00:00
www-redirector:
image: cryptkiddie2/redirector:latest
restart: always
expose:
- 80
labels:
- traefik.frontend.rule=Host:www.chaospott.de
- traefik.port=80
- traefik.frontend.passHostHeader=true
environment:
- dest=https://chaospott.de
networks:
extern:
networks:
extern:
external:
name: web