-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (63 loc) · 1.6 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.5'
services:
letsencrypt:
image: linuxserver/letsencrypt
restart: unless-stopped
container_name: letsencrypt
networks:
- ghost-blogs
cap_add:
- NET_ADMIN
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=Europe/London
- URL=${FIRST_DOMAIN}
- VALIDATION=dns
- DNSPLUGIN=cloudflare
- EMAIL=${LE_EMAIL}
- DHLEVEL=2048 # Default is 2048
- ONLY_SUBDOMAINS=false #optional
- EXTRA_DOMAINS=${SECOND_DOMAIN}
- STAGING=false #optional
ports:
- "443:443"
- "80:80"
volumes:
- ./letsencrypt/config:/config
- ./cloudflare.ini:/config/dns-conf/cloudflare.ini:ro
- ./default:/config/nginx/site-confs/default
ghost-${FIRST_BLOG_NAME}:
image: ghost:alpine
restart: unless-stopped
container_name: ${FIRST_BLOG_NAME}
networks:
- ghost-blogs
environment:
- url=https://${FIRST_DOMAIN}
- server__host=0.0.0.0
- server__port=2368
- imageOptimization__resize=false
volumes:
- ./${FIRST_BLOG_NAME}/content:/var/lib/ghost/content
depends_on:
- letsencrypt
ghost-${SECOND_BLOG_NAME}:
image: ghost:alpine
restart: unless-stopped
container_name: ${SECOND_BLOG_NAME}
networks:
- ghost-blogs
environment:
- url=https://${SECOND_DOMAIN}
- server__host=0.0.0.0
- server__port=2369
- imageOptimization__resize=false
volumes:
- ./${SECOND_BLOG_NAME}/content:/var/lib/ghost/content
depends_on:
- letsencrypt
networks:
ghost-blogs:
driver: bridge
name: ghost-blogs