Closed magicman32 closed 1 year ago
Please post your complete docker-compose.yml
file.
I know this behavior while I was testing different networks within the docker-compose.yml
file.
You could also try to resolve the database DNS name by yourself by executing
docker compose exec app ping -c1 db
As long as there is no error while trying to resolve the hostname, the network config should be OK.
its fixed now it was a file permissions I overlooked on project page
@turbo124 Issue can be closed
Setup information
docker compose up -d
Describe the bug Database is not connecting
To reproduce Steps to reproduce the behavior:
Go to '...portainer to check logs
Click on '....database container
Scroll down to '....'
See error
Click on.....app container
Click on logs
see error
Expected behavior Database to connect.......
docker-compose.yml (db section) db: image: mysql:8
env (file
DB connection
DB_HOST=db DB_PORT=3306 DB_DATABASE=ninja DB_USERNAME=ninja DB_PASSWORD=ninja
is db_port in env file meant to match 3305 in docker compose
Sorry, this is my first time doing one of these