-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 970 Bytes
/
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
version: '3'
services:
ghost:
image: ghost:latest
restart: always
depends_on:
- db
environment:
url: https://<domain>
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: MyStrongPassword
database__connection__database: ghost
volumes:
- ./content:/var/lib/ghost/content
- ./config.production.json:/var/lib/ghost/config.production.json
db:
image: mysql:8.0
ports:
- 3306:3306
restart: always
environment:
MYSQL_ROOT_PASSWORD: MyStrongPassword
volumes:
- ./mysql:/var/lib/mysql
nginx:
image: nginx:latest
restart: always
depends_on:
- ghost
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
- /usr/share/nginx/html:/usr/share/nginx/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf