docker-taiga / taiga

docker-compose.yml for simple taiga setup
215 stars 75 forks source link

Issues on creds and rabbit container keeps restarting #37

Open johnreytanquinco opened 3 years ago

johnreytanquinco commented 3 years ago

I have everything setup with traefik 2 and I encountered some issues.

.env

TAIGA_HOST=taiga.john.site.dev
TAIGA_SCHEME=https
TAIGA_BACK_HOST=back
TAIGA_FRONT_HOST=front
EVENTS_HOST=events
TAIGA_SECRET=secret

POSTGRES_HOST=db
POSTGRES_DB=taiga
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password

RABBIT_HOST=rabbit
RABBIT_USER=taiga
RABBIT_PASSWORD=password
RABBIT_VHOST=taiga

REDIS_HOST=redis
REDIS_DB=0
REDIS_PASSWORD=password

ENABLE_SSL=no

docker-compose.yml

version: '3'

services:
  back:
    image: dockertaiga/back:5.0.12
    container_name: taiga-back
    restart: unless-stopped
    labels:
      - "traefik.enable=false"
    depends_on:
      - db
      - events
    env_file:
      - .env
    volumes:
      - /srv/taiga/data:/taiga-media
      - /srv/taiga/config/back:/taiga-conf
    networks:
      - default

  front:
    image: dockertaiga/front:5.0.12
    container_name: taiga-front
    restart: unless-stopped
    labels:
      - "traefik.enable=true"
      ... some traefik config ...
    env_file:
      - .env
    volumes:
      - /srv/taiga/config/front:/taiga-conf

  db:
    image: postgres:11-alpine
    container_name: taiga-db
    restart: unless-stopped
    env_file:
      - .env
    volumes:
      - /srv/taiga/postgres:/var/lib/postgresql/data
    networks:
      - default

  rabbit:
    image: dockertaiga/rabbit
    container_name: taiga-rabbit
    restart: unless-stopped
    env_file:
      - .env
    networks:
      - default

  redis:
    image: bitnami/redis:5.0
    container_name: taiga-redis
    env_file:
      - .env
    networks:
      - default

  events:
    image: dockertaiga/events
    container_name: taiga-events
    restart: unless-stopped
    depends_on:
      - rabbit
    env_file:
      - .env
    networks:
      - default

networks:
  default:
    external:
      name: traefik_default
  1. With events, rabbit commented out: I was able to access the front-end in the browser but I cannot login. I am getting incorrect username and password. I used admin and 123123.

  2. Enabled events and rabbit. Rabbit container keeps restarting with the container logs below:

    
    $ docker logs taiga-rabbit -f
    Waiting for rabbitmq to start...
    Waiting for pid file '/var/lib/rabbitmq/rabbitmq.pid' to appear
    pid is 7
    Waiting for erlang distribution on node 'rabbit@taiga' while OS process '7' is running
    ERROR: epmd error for host taiga: nxdomain (non-existing domain)
    Error:
    process_not_running
    Initializing rabbitmq vhost and user...
    Error: unable to perform an operation on node 'rabbit@taiga'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

In addition to the diagnostics info below:

DIAGNOSTICS

attempted to contact: [rabbit@taiga]

rabbit@taiga:

Current node details:

Error: unable to perform an operation on node 'rabbit@taiga'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

In addition to the diagnostics info below:

DIAGNOSTICS

attempted to contact: [rabbit@taiga]

rabbit@taiga:

Current node details:

Error: unable to perform an operation on node 'rabbit@taiga'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

In addition to the diagnostics info below:

DIAGNOSTICS

attempted to contact: [rabbit@taiga]

rabbit@taiga:

Current node details:

ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain) ERROR: epmd error for host taiga: nxdomain (non-existing domain)