added docker-compose, removed dockerfile

Signed-off-by: Zehka <cryptkid@noreply.github.com>
This commit is contained in:
Zehka 2020-05-03 20:48:50 +02:00
parent 103af8b4bb
commit 478310a028
2 changed files with 43 additions and 7 deletions

View File

@ -1,7 +0,0 @@
from jekyll/jekyll as builder
add web /srv/jekyll
run bundle exec jekyll build --source /srv/jekyll --destination /tmp
from nginx:alpine
copy --from=builder /tmp /usr/share/nginx/html
copy nginx /etc/nginx

43
docker-compose.yml Normal file
View File

@ -0,0 +1,43 @@
version: '3.3'
services:
webhook:
image: cryptkiddie2/webhook:latest
restart: always
labels:
- "traefik.frontend.rule=Host:site.webhook.nachtigall.chaospott.de"
- "traefik.port=9000"
- "traefik.docker.network=web"
networks:
- extern
expose:
- 80
volumes:
- /data/rasen-nein-danke.de/webhook/:/webhook
- /data/beta.chaospott.de/repo/:/repo
jekyll:
image: jekyll/jekyll
restart: always
command: ["/usr/jekyll/bin/jekyll", "build", "--source", "/repo/web", "--destination", "/static", "--watch"]
volumes:
- /data/beta.chaospott.de/repo/:/repo
- /data/beta.chaospott.de/static/:/static
nginx:
image: nginx:latest
restart: always
volumes:
- /data/beta.chaospott.de/static/:/usr/share/nginx/html
- ./nginx:/etc/nginx
labels:
- "traefik.frontend.rule=Host:beta.chaospott.de"
- "traefik.port=80"
- "traefik.docker.network=web"
networks:
- extern
expose:
- 80
networks:
extern:
external:
name: web