maxbad opened a new issue, #634:
URL: https://github.com/apache/incubator-answer/issues/634

   The image I am using is answerdev/answer:1.2.0, with a MySQL database. 
Everything works fine except when the server is restarted, I encounter the 
following error: "Connection to the database failed: dial tcp 172.18.0.2:3306: 
connect: connection refused." However, the container starts running normally 
immediately after restarting it.
   
   config.yaml
   ```
   debug: false
   server:
     http:
       addr: 0.0.0.0:80
   data:
     database:
       driver: mysql
       connection: answer:test123@tcp(mysql:3306)/answer
     cache:
       file_path: /data/cache/cache.db
   i18n:
     bundle_dir: /data/i18n
   service_config:
     upload_path: /data/uploads
   swaggerui:
     show: false
     protocol: http
     host: 127.0.0.1
     address: :80
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to