forked from TryGhost/Source
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 900 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
services:
ghost:
image: ghost:latest
restart: always
ports:
- "2368:2368"
depends_on:
- ghost-db
environment:
database__client: mysql
database__connection__host: ghost-db
database__connection__database: ghost-dev-db
database__connection__user: ghost-dev-user
database__connection__password: abc123
NODE_ENV: development
GHOST_DEBUG: true
LOG_LEVEL: error
url: http://localhost:2368
volumes:
- ./content:/var/lib/ghost/content
# Map the theme files for development
- ./src:/var/lib/ghost/content/themes/dsebastien
ghost-db:
image: mariadb:latest
restart: always
environment:
MYSQL_DATABASE: ghost-dev-db
MYSQL_USER: ghost-dev-user
MYSQL_PASSWORD: abc123
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- ghost-db:/var/lib/mysql
volumes:
ghost-db: