x86dev / docker-ttrss

Tiny Tiny RSS feed reader as a Docker image.
54 stars 41 forks source link

Database connection relying on the legacy --link feature #35

Open ThaChillera opened 5 years ago

ThaChillera commented 5 years ago

As the docs specify, link is a legacy feature that can be removed at any time. Is it possible to remove this feature, and replace it by connecting to the database over a docker network?

roock commented 5 years ago

When using docker-compose you can use the following environment variables to not use the link feature:

    environment:
      - DB_PORT_5432_TCP_ADDR=postgresql
      - DB_PORT_5432_TCP_PORT=5432
      - DB_HOST=postgresql
      - DB_PORT=5432
      - DB_NAME=ttrss
      - DB_USER=ttrss
      - DB_PASS=ttrss