Connect to preexisting mariaDB Docker container #143

Closed
opened 2020-02-24 22:42:09 +00:00 by AlexKalopsia · 2 comments

Hi,

I am trying to host Vikunja but there is something that I am missing: from the full instructions it seems like I need to run a specific db container for mariaDB but I already have an existing one hwere I handle all my databases.

What would be the right way to make sure Vilkunja connects to that container (I am using docker-compose)?

Hi, I am trying to host Vikunja but there is something that I am missing: from the full instructions it seems like I need to run a specific db container for mariaDB but I already have an existing one hwere I handle all my databases. What would be the right way to make sure Vilkunja connects to that container (I am using docker-compose)?
Owner

The usual way of running this with docker compose would be to have a seperate database container just for Vikunja, in the same docker compose configuration.

Is your mysql running on the docker host? Then you should be able to communicate from inside the docker container by using the host ip as db host - take a look at this stackoverflow question about how to achieve this.

If you run the database in a docker container somewhere, you will need to put the database and Vikunja container in the same docker network. Take a look at the docker-compose docs about that.

Again, usually you just run a db container along with the app container.

The usual way of running this with docker compose would be to have a seperate database container just for Vikunja, in the same docker compose configuration. Is your mysql running on the docker host? Then you should be able to communicate from inside the docker container by using the host ip as db host - take a look at [this stackoverflow question](https://stackoverflow.com/q/31324981/10924593) about how to achieve this. If you run the database in a docker container somewhere, you will need to put the database and Vikunja container in the same docker network. Take a look at [the docker-compose docs](https://docs.docker.com/compose/networking/#specify-custom-networks) about that. Again, usually you just run a db container along with the app container.
konrad added the
question
label 2020-03-21 12:59:48 +00:00
Owner

Closing this due to inactivity - feel free to repoen.

Closing this due to inactivity - feel free to repoen.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#143
No description provided.