-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGhost
33 lines (30 loc) · 1013 Bytes
/
Ghost
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
version: '3.1'
services:
ghost:
image: ghost:latest
restart: always
volumes:
- ./content:/var/lib/ghost/content
ports:
- 2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: ghost
database__connection__password: ghost
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: http://blog.mhlab.me
# 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
db:
image: 'jc21/mariadb-aria:latest'
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'ghost'
MYSQL_DATABASE: 'ghost'
MYSQL_USER: 'ghost'
MYSQL_PASSWORD: 'ghost'
volumes:
- ./data/mysql:/var/lib/mysql