-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (28 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (28 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
services:
jekyll-dev:
build:
context: .
dockerfile: Dockerfile
user: "1000:1000"
command: >
bundle exec jekyll build --config _config.yml,_config_dev.yml
working_dir: /srv/jekyll
volumes:
- ./:/srv/jekyll:cached
site-static:
image: nginx:alpine
container_name: jekyll-static
volumes:
- ./_site:/usr/share/nginx/html:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.jekyll-static.rule=Host(`virtualthom-dev.ddns.net`)"
- "traefik.http.routers.jekyll-static.tls=true"
- "traefik.http.routers.jekyll-static.tls.certResolver=myresolver"
- "traefik.http.routers.jekyll-static.entrypoints=websecure"
- "traefik.http.services.jekyll-static.loadbalancer.server.port=80"
networks:
- web
networks:
web:
external: true