How to solving ghost in docker aapanel cannot access domain labs.peryogi.com:2368 and i use reverse proxy but nothing, this attachment
Installing Ghost in Docker
ERR_TOO_MANY_REDIRECTS
It is recommended to check your configuration
aaPanel_Kern how to check? configure is done
can you help me?
- Edited
not enable "Force HTTPS" when using CDN
aaPanel_Kern
this not use https force
aaP_newbieKiller
Check the site's logs and error logs for error messages?
Also check whether the site configuration and reverse proxy configuration are configured correctly?
Use the command to check whether the server can connect to the container: curl target address
Check the container's Log for access records and error messages
aaPanel_Kern this error
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