FATAL: database "idiario_development" does not exist

Todos os dias o banco idiario_development e excluido

ubuntu@ip-172-31-91-191:~/i-diario$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
353fc5551590 i-diario-app “./script/start” 19 hours ago Up 19 hours 0.0.0.0:80->3000/tcp, :::80->3000/tcp idiario
a1f44a141a57 redis:alpine “docker-entrypoint.s…” 19 hours ago Up 19 hours 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp redis-idiario
22083717b4e1 postgres:alpine “docker-entrypoint.s…” 19 hours ago Up 19 hours 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp postgres-idiario
ubuntu@ip-172-31-91-191:~/i-diario$ docker volume ls
DRIVER VOLUME NAME
local afa45d97c57521fc1cdf33cb9547b16c8f0773da481d4f0b30a8cafbbb985224
local e2722808b8c06937baa72a5bda821d1ecc6a4c4370c601a2697a1073928fba32
local i-diario_box
local i-diario_pg_data
ubuntu@ip-172-31-91-191:~/i-diario$ docker logs postgres-idiario

PostgreSQL Database directory appears to contain a database; Skipping initialization

2024-01-24 14:34:00.097 UTC [1] LOG: starting PostgreSQL 16.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-01-24 14:34:00.097 UTC [1] LOG: listening on IPv4 address “0.0.0.0”, port 5432
2024-01-24 14:34:00.097 UTC [1] LOG: listening on IPv6 address “::”, port 5432
2024-01-24 14:34:00.111 UTC [1] LOG: listening on Unix socket “/var/run/postgresql/.s.PGSQL.5432”
2024-01-24 14:34:00.119 UTC [24] LOG: database system was shut down at 2024-01-24 14:31:55 UTC
2024-01-24 14:34:00.129 UTC [1] LOG: database system is ready to accept connections
2024-01-24 14:35:02.456 UTC [32] WARNING: there is already a transaction in progress
2024-01-24 14:35:02.461 UTC [32] WARNING: there is no transaction in progress
2024-01-24 14:35:58.450 UTC [40] WARNING: there is already a transaction in progress
2024-01-24 14:35:58.455 UTC [40] WARNING: there is no transaction in progress
2024-01-24 14:39:00.186 UTC [22] LOG: checkpoint starting: time
2024-01-24 14:43:20.432 UTC [22] LOG: checkpoint complete: wrote 2600 buffers (15.9%); 0 WAL file(s) added, 0 removed, 1 recycled; write=260.189 s, sync=0.020 s, total=260.247 s; sync files=2557, longest=0.002 s, average=0.001 s; distance=20896 kB, estimate=20896 kB; lsn=0/55E5CA0, redo lsn=0/55E3F78
2024-01-24 16:34:01.758 UTC [22] LOG: checkpoint starting: time
2024-01-24 16:34:02.484 UTC [22] LOG: checkpoint complete: wrote 8 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.704 s, sync=0.004 s, total=0.727 s; sync files=6, longest=0.003 s, average=0.001 s; distance=8 kB, estimate=18807 kB; lsn=0/55E5FB0, redo lsn=0/55E5F78
2024-01-24 20:30:04.377 UTC [2184] LOG: invalid length of startup packet
2024-01-24 21:43:59.902 UTC [2630] FATAL: database “template0” is not currently accepting connections
2024-01-24 21:44:05.635 UTC [22] LOG: checkpoint starting: time
2024-01-24 21:44:16.589 UTC [22] LOG: checkpoint complete: wrote 109 buffers (0.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=10.939 s, sync=0.006 s, total=10.954 s; sync files=27, longest=0.004 s, average=0.001 s; distance=736 kB, estimate=17000 kB; lsn=0/582FBC0, redo lsn=0/569DFB0
2024-01-24 21:45:56.356 UTC [70] FATAL: terminating connection due to administrator command
2024-01-24 21:45:56.357 UTC [69] FATAL: terminating connection due to administrator command
2024-01-24 21:45:56.357 UTC [29] FATAL: terminating connection due to administrator command
2024-01-24 21:45:56.360 UTC [74] FATAL: terminating connection due to administrator command
2024-01-24 21:45:56.360 UTC [73] FATAL: terminating connection due to administrator command
2024-01-24 21:45:57.460 UTC [2650] ERROR: cannot drop the currently open database
2024-01-24 21:45:57.460 UTC [2650] STATEMENT: DROP DATABASE postgres;
2024-01-24 21:45:57.976 UTC [22] LOG: checkpoint starting: immediate force wait
2024-01-24 21:45:58.067 UTC [22] LOG: checkpoint complete: wrote 776 buffers (4.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.060 s, sync=0.004 s, total=0.091 s; sync files=115, longest=0.003 s, average=0.001 s; distance=6847 kB, estimate=15985 kB; lsn=0/5D4DEE8, redo lsn=0/5D4DEB0
2024-01-24 21:45:58.575 UTC [22] LOG: checkpoint starting: immediate force wait
2024-01-24 21:45:58.593 UTC [22] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.018 s; sync files=2, longest=0.002 s, average=0.002 s; distance=1 kB, estimate=14386 kB; lsn=0/5D4E6C0, redo lsn=0/5D4E688
2024-01-24 21:45:59.107 UTC [22] LOG: checkpoint starting: immediate force wait
2024-01-24 21:45:59.122 UTC [22] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.015 s; sync files=2, longest=0.002 s, average=0.002 s; distance=1 kB, estimate=12948 kB; lsn=0/5D4EE80, redo lsn=0/5D4EE48
2024-01-24 21:45:59.633 UTC [22] LOG: checkpoint starting: immediate force wait
2024-01-24 21:45:59.649 UTC [22] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.016 s; sync files=2, longest=0.003 s, average=0.002 s; distance=1 kB, estimate=11653 kB; lsn=0/5D4F640, redo lsn=0/5D4F608
2024-01-24 21:50:59.709 UTC [22] LOG: checkpoint starting: time
2024-01-24 21:52:32.096 UTC [22] LOG: checkpoint complete: wrote 924 buffers (5.6%); 0 WAL file(s) added, 0 removed, 1 recycled; write=92.373 s, sync=0.005 s, total=92.387 s; sync files=301, longest=0.002 s, average=0.001 s; distance=4275 kB, estimate=10915 kB; lsn=0/617C4D8, redo lsn=0/617C4A0
2024-01-24 22:13:17.104 UTC [2767] FATAL: database “idiario_development” does not exist
2024-01-24 22:19:16.934 UTC [2792] FATAL: database “idiario_development” does not exist
2024-01-24 22:19:17.534 UTC [2794] FATAL: database “idiario_development” does not exist
2024-01-24 23:19:41.749 UTC [3036] FATAL: database “idiario_development” does not exist
2024-01-24 23:19:42.196 UTC [3037] FATAL: database “idiario_development” does not exist
2024-01-25 00:05:56.876 UTC [3223] FATAL: database “idiario_development” does not exist
2024-01-25 00:33:51.733 UTC [3336] FATAL: database “idiario_development” does not exist
2024-01-25 00:48:05.841 UTC [3394] FATAL: database “idiario_development” does not exist
2024-01-25 00:49:24.756 UTC [3400] FATAL: database “idiario_development” does not exist
2024-01-25 00:49:25.186 UTC [3401] FATAL: database “idiario_development” does not exist
2024-01-25 01:16:18.281 UTC [3509] FATAL: password authentication failed for user “postgres”
2024-01-25 01:16:18.281 UTC [3509] DETAIL: Connection matched file “/var/lib/postgresql/data/pg_hba.conf” line 128: “host all all all scram-sha-256”
2024-01-25 01:41:49.378 UTC [3612] FATAL: database “idiario_development” does not exist
2024-01-25 01:51:51.794 UTC [3654] FATAL: database “idiario_development” does not exist
2024-01-25 02:11:37.576 UTC [3734] FATAL: database “idiario_development” does not exist
2024-01-25 02:59:03.138 UTC [3924] FATAL: database “idiario_development” does not exist
2024-01-25 02:59:03.659 UTC [3925] FATAL: database “idiario_development” does not exist
2024-01-25 03:24:00.846 UTC [4026] FATAL: database “idiario_development” does not exist
2024-01-25 03:38:23.304 UTC [4085] FATAL: database “idiario_development” does not exist
2024-01-25 03:39:00.386 UTC [4088] FATAL: database “idiario_development” does not exist
2024-01-25 03:41:59.327 UTC [4101] FATAL: database “idiario_development” does not exist
2024-01-25 03:54:13.582 UTC [4151] FATAL: database “idiario_development” does not exist
2024-01-25 03:54:14.005 UTC [4152] FATAL: database “idiario_development” does not exist
2024-01-25 04:28:50.645 UTC [4291] FATAL: database “idiario_development” does not exist
2024-01-25 04:28:51.380 UTC [4292] FATAL: database “idiario_development” does not exist
2024-01-25 04:57:14.303 UTC [4407] FATAL: database “idiario_development” does not exist
2024-01-25 04:57:14.733 UTC [4408] FATAL: database “idiario_development” does not exist
2024-01-25 05:00:34.839 UTC [4422] FATAL: database “idiario_development” does not exist
2024-01-25 05:03:26.352 UTC [4435] FATAL: database “idiario_development” does not exist
2024-01-25 06:32:03.633 UTC [4789] FATAL: database “idiario_development” does not exist
2024-01-25 06:32:04.060 UTC [4790] FATAL: database “idiario_development” does not exist
2024-01-25 06:34:06.082 UTC [4799] FATAL: database “idiario_development” does not exist
2024-01-25 07:15:59.783 UTC [4968] FATAL: database “idiario_development” does not exist
2024-01-25 07:22:14.459 UTC [4994] FATAL: database “idiario_development” does not exist
2024-01-25 07:22:14.881 UTC [4995] FATAL: database “idiario_development” does not exist
2024-01-25 07:53:29.917 UTC [5121] FATAL: database “idiario_development” does not exist
2024-01-25 08:13:43.268 UTC [5203] FATAL: database “idiario_development” does not exist
2024-01-25 08:15:32.020 UTC [5211] FATAL: database “idiario_development” does not exist
2024-01-25 08:16:10.207 UTC [5214] FATAL: database “idiario_development” does not exist
2024-01-25 08:40:13.505 UTC [5312] FATAL: database “idiario_development” does not exist
2024-01-25 08:40:14.069 UTC [5313] FATAL: database “idiario_development” does not exist
2024-01-25 09:07:28.669 UTC [5423] FATAL: database “idiario_development” does not exist
2024-01-25 09:07:29.100 UTC [5424] FATAL: database “idiario_development” does not exist
2024-01-25 09:35:33.526 UTC [5537] FATAL: database “idiario_development” does not exist
2024-01-25 09:35:35.110 UTC [5538] FATAL: database “idiario_development” does not exist
ubuntu@ip-172-31-91-191:~/i-diario$

Verifique seu processo de instalação. Faltou criar ou configurar corretamente a base do i-diário.