-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathghost.yml
More file actions
41 lines (38 loc) · 1.12 KB
/
ghost.yml
File metadata and controls
41 lines (38 loc) · 1.12 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
30
31
32
33
34
35
36
37
38
39
40
41
version: '2'
services:
web:
container_name: ghost
image: ghost:latest
restart: always
ports:
- 80:2368
- 443:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: $DB_USER
database__connection__password: $DB_PASS
database__connection__database: GhostDB
# this url value is just an example, and is likely wrong for your environment!
url: http://$URL
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
#NODE_ENV: development
volumes:
- ghost-data:/var/lib/ghost/content
db:
container_name: mysql
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: $DB_PASS
MYSQL_PASSWORD: $DB_PASS
MYSQL_DATABASE: GhostDB
MYSQL_USER: $DB_USER
ports:
- "127.0.0.1:3306:3306"
volumes:
- mysql-data:/var/lib/mysql
volumes:
ghost-data:
mysql-data: