시놀로지 나스에 ghost 설치 문제
시놀로지 나스에 docker를 이용해서 ghost를 설치하려고 합니다.
containermanager, portainer, docker compose 갖가지 다 써보고 이미지도 바꿔보고
db랑 ghost를 같이 올려보기도 하고 db를 먼저 만들고 데이터베이스, 유저를 만들어 권한을 grant해서 올려보기도 하고
여러 방법을 써봤는데
어떻게 설치를 하든 invalid host name, please double check your database config와ETIMEDOUT이 뜹니다.
어디가 문제인지 아무리 찾아봐도 알 수 없어서 여기에 질문 올려봅니다.
달소님이 올려주신 파일로 돌려본 docker compose를 같이 올려봅니다. localhost랑 password만 가렸습니다.
version: '3.1'
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8080:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: mystrongpassword
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: http://mylocalhost:8080
# 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:
- /volume1/docker/ghost/data:/var/lib/ghost/content
db:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: mystrongpassword
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8080:2368
environment:
# see https://ghost.org/docs/config/#configuration-options
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: mystrongpassword
database__connection__database: ghost
# this url value is just an example, and is likely wrong for your environment!
url: http://mylocalhost:8080
# 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:
- /volume1/docker/ghost/data:/var/lib/ghost/content
db:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: mystrongpassword
cmt alert