Cannot connect to backend #128
-
I would like to use this app 'coz I've been searching for long time for a self-hosted open source gardening companio app, but I cannot manage how to make frontend and backend to communicate. I've tried the options of the installation guide, tryin with the docker host IP, hostname, internal docker backend container name, hostaname and IP, but I receive everytime a "cannot connect to..." message after 10 s... I've tried to get into the frontend container bash and try to curl, but I get a "connection refused" message... Maybe I missed something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Hi @ilgigante77, thank for opening the issue! |
Beta Was this translation helpful? Give feedback.
-
Here you are: version: "3" db: cache: frontend: DBMYSQL_HOST=db JWTJWT_SECRET=xxxxxxxxxxx Server configUSERS_LIMIT=-1 CacheCACHE_TTL=86400 SSLSSL_ENABLED=false PORT=3000 The 5001 and 5002 ports are open on the firewall |
Beta Was this translation helpful? Give feedback.
-
eureka! now it works! I didn't know that the db was directly accessed by the frontend, so I created a virtual volume for it! thanks tho |
Beta Was this translation helpful? Give feedback.
Great, I meant exactly that log.
Ok so it seems to be related to the connection between backend and db.
I saw that in you
docker-compose
you are usingJust for a quick test, could you try to use this?
It should create a
db
directory inside the folder you're using