Skip to content

Cannot connect to backend #128

Closed Answered by MDeLuise
ilgigante77 asked this question in Q&A
Feb 22, 2024 · 3 comments · 7 replies
Discussion options

You must be logged in to vote

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 using

db:
image: mysql:8.0
restart: always
env_file: backend.env
volumes:
  - "plantit-db:/var/lib/mysql"

Just for a quick test, could you try to use this?

db:
image: mysql:8.0
restart: always
env_file: backend.env
volumes:
  - "./db:/var/lib/mysql"

It should create a db directory inside the folder you're using

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@MDeLuise
Comment options

@ilgigante77
Comment options

@ilgigante77
Comment options

@MDeLuise
Comment options

Answer selected by ilgigante77
Comment options

You must be logged in to vote
1 reply
@MDeLuise
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants