NickReinlein / GilGoblin

For the game Final Fantasy XIV, this app calculates the most profitable items to craft based on market prices, vendor prices and crafting component costs. It also provides a front-end to display the results
MIT License
23 stars 0 forks source link

Unable to start with provided instructions. #95

Open TheOddball opened 3 months ago

TheOddball commented 3 months ago

I am trying to get GilGoblin working under docker, and unfortunately I am having issues getting it started with the provided instructions. I am using a brand new install of Ubuntu 24.04 (or 22.04) on a VM (except for installing docker-compose), and running docker-compose up -d is failing to start the containers, failing due to invalid variables (complaining most about ports).

Setting the ports manually in the docker-compose will not get it to load either, due to another error: 'name' does not match any of the regexes: '^x-'

Running the compose using the plugin version (using docker compose up) does get it to start, but most if not all of the containers are failing due to numerous errors. (I imagine due to missing variables.)

Thank you!

alyssadev commented 3 months ago

I made a sample .env file

DOCKER_INFLUXDB_INIT_MODE=setup
DOCKER_INFLUXDB_INIT_ORG=gilgoblin
DOCKER_INFLUXDB_INIT_BUCKET=gilgoblin
DOCKER_INFLUXDB_DB=gilgoblin
DOCKER_INFLUXDB_ADMIN_USER=admin
DOCKER_INFLUXDB_ADMIN_PASSWORD=gilgoblin
PORT_API=55448
PORT_FRONTEND=3000
GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
GF_AUTH_ANONYMOUS_ENABLED=true
GF_AUTH_BASIC_ENABLED=false
PORT_GRAFANA=3001
POSTGRES_DB=gilgoblin
POSTGRES_USER=gilgoblin
POSTGRES_PASSWORD=gilgoblin
PGUSER=gilgoblin
PGDATA=/var/lib/postgresql/data
PORT_DATABASE=5432
DB_CONNECTION_STRING="Server=database; Port=$PORT_DATABASE; Database=$POSTGRES_DB; User Id=$POSTGRES_USER; Password=$POSTGRES_PASSWORD"
NickReinlein commented 2 months ago

@TheOddball sorry, I'm only seeing this now. I didn't know anyone was really looking at this code 😅

The .env provided by @alyssadev is great! It matches quite well what I have in my own

Did you get it to work?

Unfortunately, I'm in the middle of a big rework of the back-end at the moment. The API that was relied upon, Universalis, has changed their format and the structure of their responses. I'm not sure if the current code will update properly.

Overnight, it suddenly started returning empty responses or missing prices. Without adjusting the "fetcher", "updater" and "database" services, I'm not sure how usable it is.

I'm actively working to fix it daily.