-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
37 lines (35 loc) · 1.07 KB
/
docker-compose.yml
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
services:
builder:
image: floryn90/hugo:0.134.2
command: --logLevel info --baseURL="https://iscsc.fr" --buildFuture
environment:
- HUGO_DESTINATION=/build/blog
# For maximum backward compatibility with Hugo modules:
- HUGO_ENV=production
- HUGO_ENVIRONMENT=production
volumes:
- ./src:/src:rw
# The container is mode-agnostique: it always builds in /build/blog
# the volume shared on the host side determines where it should go
- ./build/blog/prod:/build/blog:rw
blog:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
# serves iscsc.fr ;
- ./build/blog/prod:/blog/prod:rw
# serves dev.iscsc.fr :
- ./build/blog/dev:/blog/dev:rw
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw