forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
39 lines (38 loc) · 975 Bytes
/
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
version: '3'
services:
ghost:
container_name: ghost
build:
context: .
dockerfile: ./docker/DockerfileDockerize
volumes:
- ./docker/config.production.json:/srv/ghost/config.production.json:ro
- ./ghost/core/content/data:/srv/ghost/content/data
- ./ghost/core/content/logs:/srv/ghost/content/logs
- ./ghost/core/content/settings:/srv/ghost/content/settings
ports:
- '8180:2368'
tty: true
restart: always
depends_on:
- maria
command: >
bash -c "dockerize -wait tcp://maria:3306 &&
node /srv/ghost/index.js"
maria:
image: mariadb:10.11.4
container_name: maria
volumes:
- maria-volume:/var/lib/maria
- ./conf.d:/etc/mysql/conf.d:ro
restart: always
environment:
MYSQL_ROOT_HOST: maria
MYSQL_ROOT_PASSWORD: ghost
MYSQL_USER: ghost
MYSQL_PASSWORD: pass
MYSQL_DATABASE: ghost
expose:
- 3306
volumes:
maria-volume: