benhutchins / docker-taiga-example

Example project demonstrating how to use https://github.com/benhutchins/docker-taiga
71 stars 51 forks source link

Taiga don't connect to postgres #22

Open evandroteixeira1710 opened 3 years ago

evandroteixeira1710 commented 3 years ago

Good morning people, Today I started testing Taiga for the company I work for, created taiga.yml and went up with the docker-compose -f taiga.yml up -d. When I check the taiga log, it is looping for not connecting to the database. "Failed to connect to database server or database does not exist. Running database check Connecting to database: dbname = 'taigadb' user = 'taiga' host = 'localhost' password = 'password' Traceback (most recent call last): File "/checkdb.py", line 14, in conn = psycopg2.connect (conn_string) File "/usr/local/lib/python3.5/site-packages/psycopg2/init.py", line 130, in connect conn = _connect (dsn, connection_factory = connection_factory, ** kwasync) psycopg2.OperationalError: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP / IP connections on port 5432? could not connect to server: Network is unreachable Is the server running on host "localhost" (:: 1) and accepting TCP / IP connections on port 5432? "

My taiga.yml

version: '3'

services: taiga: container_name: Taiga image: benhutchins / taiga restart: always build: ../ ports:

OBS. I can access via pgadmin and connecting to postgres as well.

dnx-xy commented 3 years ago

same issues here.. any help would be appreaciated