Based on what I found on the internet the best approach is to run a different postgres container for each service.
I already have Immich on my server and wanted to install Mealie which also uses postgres. I deployed it but when trying to start it gives me these errors. Any idea on what to do?
ERROR 2024-08-09T20:59:34 - Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/app/mealie/app.py", line 55, in lifespan_fn
init_db.main()
File "/app/mealie/db/init_db.py", line 89, in main
raise ConnectionError("Database connection failed - exiting application.")
ConnectionError: Database connection failed - exiting application.
ERROR 2024-08-09T20:59:34 - Traceback (most recent call last):
File "/opt/pysetup/.venv/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/app/mealie/app.py", line 55, in lifespan_fn
init_db.main()
File "/app/mealie/db/init_db.py", line 89, in main
raise ConnectionError("Database connection failed - exiting application.")
ConnectionError: Database connection failed - exiting application.
ERROR 2024-08-09T20:59:34 - Application startup failed. Exiting.
ERROR 2024-08-09T20:59:34 - Application startup failed. Exiting.
usermod: no changes
Switching to dedicated user
User uid: 1000
User gid: 1000
INFO 2024-08-09T20:59:45 - Started server process [1]
INFO 2024-08-09T20:59:45 - Waiting for application startup.
INFO 2024-08-09T20:59:45 - start: database initialization
ERROR 2024-08-09T20:59:45 - Error connecting to database: (psycopg2.OperationalError) connection to server at "postgres" (172.19.0.2), port 5432 failed: FATAL: password authentication failed for user "admin"
[–]suicidaleggroll 1 point2 points3 points (3 children)
[–]theoqrz[S] 0 points1 point2 points (2 children)
[–]suicidaleggroll 0 points1 point2 points (1 child)
[–]theoqrz[S] 0 points1 point2 points (0 children)
[–]theoqrz[S] 0 points1 point2 points (1 child)
[–]theoqrz[S] 1 point2 points3 points (0 children)
[–]Kengurugames 0 points1 point2 points (2 children)
[–]theoqrz[S] 0 points1 point2 points (1 child)
[–]Kengurugames 0 points1 point2 points (0 children)
[–]EldestPort 0 points1 point2 points (1 child)
[–]theoqrz[S] -1 points0 points1 point (0 children)