Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making make start work with existing database #24

Closed
Torxed opened this issue Dec 7, 2019 · 5 comments
Closed

Making make start work with existing database #24

Torxed opened this issue Dec 7, 2019 · 5 comments
Assignees

Comments

@Torxed
Copy link

Torxed commented Dec 7, 2019

docker-compose.yaml

version: '2'

volumes:
    media:

services:
    taiga:
        image: quay.io/riotkit/taiga:${VERSION}
        environment:
            POSTGRES_DB: ${TAIGA_DB_NAME}
            POSTGRES_PASSWORD: ${TAIGA_DB_PASSWORD}
            POSTGRES_USER: ${TAIGA_DB_USER}
        extra_hosts:
            - "database:172.19.0.1"
        ports:
            - 127.0.0.1:80:80
        volumes:
            # all data placed in volumes are kept between container updates/deletion/recreation
            - media:/usr/src/taiga-back/media
        env_file:
            - .env

Only change really in .env would be:

TAIGA_DB_HOST=database
@Torxed
Copy link
Author

Torxed commented Dec 7, 2019

Never really worked with docker, so would be neat if there were an example for this on record, would make it a lot easier to get up and running. Cheers for forking a otherwise dead project btw.

@Torxed Torxed changed the title Making make run work with existing database Making make start work with existing database Dec 7, 2019
@blackandred
Copy link
Contributor

Hi, is this a problem or a solution?

@Torxed
Copy link
Author

Torxed commented Dec 18, 2019

Hi, is this a problem or a solution?

It's a solution, or a minimal example of how to run taiga with a already existing postgresql server (external) and exposing that host to the docker container.
I just lacked this example when I got started, and thought I'd share what other beginners with docker could use if they only want to run the taiga in a docker, not the whole solution :)

@blackandred
Copy link
Contributor

Thanks, I will add it to FAQ then.

@blackandred blackandred self-assigned this Dec 20, 2019
blackandred added a commit that referenced this issue Dec 27, 2019
@blackandred
Copy link
Contributor

Added, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants