How to solving ghost in docker aapanel cannot access domain labs.peryogi.com:2368 and i use reverse proxy but nothing, this attachment

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

    8 days later
    10 days later

    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
    database
    connectionhost: 127.0.0.1 [problem with this, trying to localhost still not connect]
    database
    connectionuser: Peryogi_ghost
    database
    connectionpassword: ######
    database
    connection__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

      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

        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

        Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com