site-deploy/docker-compose.yml

45 lines
1.0 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-05 21:19:28 +00:00
- traefik.frontend.rule=Host:chaospott.de,www.chaospott.de
2020-07-05 15:56:22 +00:00
- traefik.port=80
- traefik.docker.network=web
networks:
- extern
expose:
- 80
networks:
extern:
external:
name: web