aaPanel_Kern this error
Installing Ghost in Docker
aaPanel_Kern can you help me for install in my server, im trying reinstall but still confused
aaP_newbieKiller
Hello, the prompt cannot connect to mysql, it is recommended to check the relevant configuration.
aaPanel_Kern hi, 10 days a go i retry, retry and retry but still problem..
[90mError: connect ECONNREFUSED 127.0.0.1:3306
at /var/lib/ghost/versions/5.41.0/node_modules/knex-migrator/lib/database.js:57:19
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)[39m
im using phpmyadmin with same domain panel.
docker template
version: '3.3'
services:
ghost:
image: ghost:latest
restart: always
ports:
- 8080:2368
environment:
see https://ghost.org/docs/config/#configuration-options
databaseclient: mysql
databaseconnectionhost: 127.0.0.1 [problem with this, trying to localhost still not connect]
databaseconnectionuser: Peryogi_ghost
databaseconnectionpassword: ######
databaseconnection__database: peryogi_ghost
#url change your domain
url: https://labs.peryogi.com
#mail
mail__transport: SMTP
mail__options__host: smtp_host
mail__options__secure: false
mail__options__port: 587
mail__options__service: SES
mail__options__auth__user: smtp_user
mail__options__auth__pass: smtp_pass
NODE_ENV: production
volumes:
- /peryogilabs/www/wwwroot/ghost_blog:/var/lib/ghost/content
aaP_newbieKiller
docker is a virtual program. 127.0.0.1 in docker refers to the internal network of the container. Using 127.0.0.1 the container cannot communicate with the host.
Please check whether the mysql container in the docker template needs to be added. If not added, please use the IP of the host directly, and ensure that there is a relevant database in the mysql of the host
@aaPanel_Kern this is using IP host direcly Screen Shot no 1, but this connection failed, can you help me for installed?
aaP_newbieKiller
It is recommended to check whether the container can connect to port 3306 of the specified IP
At the same time, check whether the relevant database is open to the specified IP or everyone
- Edited
aaPanel_Kern
ghost installed ready, but im cannot binding domain. how to, i change host to 129.150.42.29, ready to reverse but not access
- Edited
x
use default parameters
Sent Domain:$host
aaPanel_Kern thank you, problem solving