2022-05-10 22:01:04 -04:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
ghost:
|
2022-09-14 12:23:01 -04:00
|
|
|
image: ghost:5-alpine
|
2022-05-10 22:01:04 -04:00
|
|
|
ports:
|
|
|
|
- 2368:2368
|
2022-09-14 12:23:01 -04:00
|
|
|
environment:
|
|
|
|
# see https://ghost.org/docs/config/#configuration-options
|
|
|
|
database__client: mysql
|
|
|
|
database__connection__host: db
|
|
|
|
database__connection__user: root
|
|
|
|
database__connection__password: password
|
|
|
|
database__connection__database: ghost
|
|
|
|
url: http://localhost:2368
|
2022-05-10 22:01:04 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ghost:/var/lib/ghost/content
|
2022-09-14 12:23:01 -04:00
|
|
|
db:
|
|
|
|
image: mysql:8.0
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: password
|
2022-05-10 22:01:04 -04:00
|
|
|
volumes:
|
|
|
|
ghost:
|