forked from poole/lanyon
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.67 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
# ── Local development server with live-reload ─────────────────────────────
jekyll:
build: .
image: moiseevigor-blog:dev
command: >
bundle exec jekyll serve
--host 0.0.0.0
--port 4000
--livereload
--drafts
--future
--config _config.yml,_config.dev.yml
volumes:
- .:/srv/jekyll
- bundle_cache:/usr/local/bundle
ports:
- "4000:4000" # Jekyll
- "35729:35729" # LiveReload
environment:
JEKYLL_ENV: development
stdin_open: true
tty: true
# ── One-shot production build ─────────────────────────────────────────────
build:
build: .
image: moiseevigor-blog:dev
command: >
bundle exec jekyll build
--config _config.yml
volumes:
- .:/srv/jekyll
- bundle_cache:/usr/local/bundle
environment:
JEKYLL_ENV: production
profiles: [build]
# ── HTMLProofer (matches CircleCI check) ─────────────────────────────────
htmlproofer:
build: .
image: moiseevigor-blog:dev
command: >
bundle exec htmlproofer ./_site
--only-4xx
--ignore_urls "/example.com/,/ws-na.amazon-adsystem.com/,/molpharm.aspetjournals.org/,/^https://fonts\.googleapis\.com/,/^https://fonts\.gstatic\.com/,/^https://moiseevigor\.github\.io//"
--ignore-status-codes "403,429"
volumes:
- .:/srv/jekyll
- bundle_cache:/usr/local/bundle
profiles: [test]
volumes:
bundle_cache: