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 configuration doesn't work out the box #25

Open
mirkoperillo opened this issue Nov 22, 2021 · 3 comments
Open

Docker-compose configuration doesn't work out the box #25

mirkoperillo opened this issue Nov 22, 2021 · 3 comments

Comments

@mirkoperillo
Copy link

Using the default docker-compose configuration the brick-server fails because to many connections to Postgres.
Same situation as here #5 (comment)

My workaround is setting the max_connections parameters for the Postgres instance.

Here the snippet in my docker-compose.yml

 brickserver-postgres:
     container_name: brickserver-postgres
     image: "jbkoh/brickserver-postgresql:latest"
     command: postgres -c 'max_connections=300'
     environment: # Below secrets should be matched with the information in `configs.json` too.
       - POSTGRES_USER=bricker
       - POSTGRES_PASSWORD=brick-demo
       - POSTGRES_DB=brick

the interesting line is:

command: postgres -c 'max_connections=300'
@oising
Copy link

oising commented Feb 2, 2022

Can confirm. Was cursing to the sky until I found this. Thank you!

@oising
Copy link

oising commented Feb 2, 2022

Hmm, resuming cursing the sky now because querying by entity_id just hangs forever and I lack the chops (or patience) to figure it out. Sigh.

(note: this fix allowed me to list all entities successfully which previous was hanging forever, but now query by entity_id just hangs instead.)

@Reapor-Yurnero
Copy link
Collaborator

I think this issue is out of date. Did you have a chance to try the new version?

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