-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
29 lines (27 loc) · 1.13 KB
/
docker-compose.example.yml
File metadata and controls
29 lines (27 loc) · 1.13 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
version: '3'
services:
certbot:
image: lshallo/certbot-multidomain
container_name: certbot
restart: unless-stopped
environment:
- CONFIG_PATH=/app/config.yml # path to config
- CERT_OUTPUT_PATH=/app/certs # destination for generated certs
- NGINX_CONTAINER_NAME=nginx # name of container to restart after renew
# - DEBUG=True # set to True to enable debugging
volumes:
- ./config.yml:/app/config.yml # path to config.yml. local path can be anything. just make sure the rightp part matches that of the env variable
- ./dns:/app/dns # folder for dns config files. set path in config.yml
- ./certs:/app/certs # map destinatio certs to local cert directory to share with nginx
- /var/run/docker.sock:/var/run/docker.sock # mount docker sock to restart nginx container after renew
# This is just an example nginx container.
# Use your own flavor
nginx:
container_name: nginx
restart: unless-stopped
image: linuxserver/nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./certs:/certs:ro # certs will be accesible with /certs/live/[domain]/fullchain.pem