I am trying to set up a local peptipedia server and something's going wrong when I build the docker compose in bd/.
After following the guidelines from your README.md file (prepare database files locally + set up env variables), I did:
docker-compose up --build
but I got the error
service peptipedia-db declares mutually exclusivenetwork_modeandnetworks: invalid compose project
Just in case, I tried to comment "network_mode: bridge" in bd/docker-compose.yaml to see what happens. I can build and launch the docker compose, but the one in root folder cannot be built properly. It seems that the peptipedia-db container listens to 0.0.0.0:5432 while peptipedia-backend tries to connect to 127.0.0.1:5432:
peptipedia-db | 2023-10-02 14:09:08.980 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432peptipedia-backend | psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Do you have an idea how to solve this problem?
FYI, I am using Docker version 24.0.5 and Docker Compose version v2.22.0.
Thanks a lot in advance! And thank you for this awesome project :)
Hi!
I am trying to set up a local peptipedia server and something's going wrong when I build the docker compose in bd/. After following the guidelines from your README.md file (prepare database files locally + set up env variables), I did:
docker-compose up --build
but I got the errorservice peptipedia-db declares mutually exclusive
network_modeand
networks: invalid compose project
Just in case, I tried to comment "network_mode: bridge" in bd/docker-compose.yaml to see what happens. I can build and launch the docker compose, but the one in root folder cannot be built properly. It seems that the peptipedia-db container listens to 0.0.0.0:5432 while peptipedia-backend tries to connect to 127.0.0.1:5432:
peptipedia-db | 2023-10-02 14:09:08.980 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
peptipedia-backend | psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Do you have an idea how to solve this problem?
FYI, I am using Docker version 24.0.5 and Docker Compose version v2.22.0.
Thanks a lot in advance! And thank you for this awesome project :)
Olivier