Open Hollowscope4022 opened 6 hours ago
Can you please provide your docker compose file and any logs from the containers/UI?
This is my docker yaml file docker-compose.tar.gz and this is my log WARN[0000] The "IGDB_CLIENT_ID" variable is not set. Defaulting to a blank string. WARN[0000] The "IGDB_CLIENT_SECRET" variable is not set. Defaulting to a blank string. retrom-web | npm warn exec The following package was not found and will be installed: vite@5.4.7 retrom-1 | 2024-09-21T22:58:35.654557Z INFO retrom_service: Error connecting to database, is the server running and accessible? Retrying... retrom-1 | 2024-09-21T22:58:35.755936Z INFO retrom_service: Error connecting to database, is the server running and accessible? Retrying... retrom-1 | 2024-09-21T22:58:35.992844Z INFO retrom_service: Starting server at: 0.0.0.0:5101 retrom-web | ➜ Local: http://localhost:3000/ retrom-web | ➜ Network: http://172.18.0.3:3000/ retrom-db | retrom-db | PostgreSQL Database directory appears to contain a database; Skipping initialization retrom-db | retrom-db | 2024-09-21 22:58:35.716 UTC [1] LOG: starting PostgreSQL 16.4 (Debian 16.4-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit retrom-db | 2024-09-21 22:58:35.716 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 retrom-db | 2024-09-21 22:58:35.716 UTC [1] LOG: listening on IPv6 address "::", port 5432 retrom-db | 2024-09-21 22:58:35.732 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" retrom-db | 2024-09-21 22:58:35.747 UTC [30] LOG: database system was shut down at 2024-09-21 22:58:20 UTC retrom-db | 2024-09-21 22:58:35.755 UTC [31] FATAL: the database system is starting up retrom-db | 2024-09-21 22:58:35.758 UTC [1] LOG: database system is ready to accept connections retrom-db | 2024-09-21 23:03:35.845 UTC [28] LOG: checkpoint starting: time retrom-db | 2024-09-21 23:03:35.892 UTC [28] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.014 s, sync=0.004 s, total=0.048 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/1A11D20, redo lsn=0/1A11CE8
You do not have your volumes mapped correctly. In general, a volume is mapped like so:
{path/on/host}:{path/in/container}
.
You currently have your library mapped like so:
volumes:
- /home/brett/Downloads/library/
Note how you have not included the part for in the container? Change it to:
volumes:
- /home/brett/Downloads/library/:/app/library
Similarly, you have the volume for your database mapped like:
volumes:
- /path/to/pg_data:/var/lib/postgresql/data
and I would assume that you do not want to store all of retrom's data at path/to/pg_data
literally. I would update that to a safe directory on your machine that you want the database data stored to.
If you are somewhat new to Docker Compose, I would suggest you take a look at the docs to get an idea of how to properly configure these services: https://docs.docker.com/compose/gettingstarted/
Retrom won't detect any of my games or folders, the path to my library is "/home/brett/Downloads/library/" and it's structured like this /library/game_boy_advance/Sonic_Advance/SonicAdvance.gba Am I doing something wrong?