Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose error (error connecting to DB) #32

Closed
9868-08 opened this issue Mar 7, 2025 · 2 comments
Closed

docker-compose error (error connecting to DB) #32

9868-08 opened this issue Mar 7, 2025 · 2 comments

Comments

@9868-08
Copy link

9868-08 commented Mar 7, 2025

Image

@vivienbcr
Copy link

In config.sample default settings point to localhost (127.0.0.1), in docker compose environment this services are available on their hostname like redis:6379 and database db:5432 . Look at comments in configuration sample for more information.

@yc01
Copy link

yc01 commented Mar 7, 2025

For docker compose, you have use the following defaults in the config.toml file for db. the host should be "db" and username, password and database names should be default "libredesk".

[db]
# If using docker compose, use the service name as the host. e.g. db
host = "db"
port = 5432
user = "libredesk"
password = "libredesk"
database = "libredesk"

@9868-08 9868-08 closed this as completed Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants