@바람개비님, 사용중인 Ghost Docker-compose 입니다.
@바람개비님 댓글로 문의주신 제 ghost docker-compose 입니다.
조금 오래전부터 쓰면서 업뎃해온거라,, 바로 이대로해도 될지는 잘 모르겠네요.
참고하시면되겠습니다.
services:
ghost:
image: ghost:5
restart: always
ports:
- 8081:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: https://example.com
# 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:
- ./data:/var/lib/ghost/content
db:
image: mysql:8
restart: always
ports:
- 3312:3306
environment:
MYSQL_ROOT_PASSWORD: example
volumes:
- ./mysql:/var/lib/mysql
~