forked from eugene-khyst/letsencrypt-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml.sample
More file actions
49 lines (43 loc) · 950 Bytes
/
docker-compose.yml.sample
File metadata and controls
49 lines (43 loc) · 950 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "3.7"
services:
nginx:
container_name: nginx
build: ./nginx
image: nginx
env_file:
- ./config.env
volumes:
- static_sites:/var/www/html
- letsencrypt_certs:/etc/letsencrypt
- certbot_acme_challenge:/var/www/certbot
- ./htpasswd:/etc/nginx/htpasswd:ro
ports:
- "80:80"
- "443:443"
restart: unless-stopped
certbot:
container_name: certbot
build: ./certbot
image: certbot
env_file:
- ./config.env
volumes:
- letsencrypt_certs:/etc/letsencrypt
- certbot_acme_challenge:/var/www/certbot
cron:
container_name: cron
build: ./cron
image: cron
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:/workdir:ro
restart: unless-stopped
volumes:
letsencrypt_certs:
certbot_acme_challenge:
static_sites:
external: true
networks:
default:
name: leadcms-network
external: true