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

Hostname error for image #129

Open
xyrintech opened this issue Jun 26, 2019 · 2 comments
Open

Hostname error for image #129

xyrintech opened this issue Jun 26, 2019 · 2 comments

Comments

@xyrintech
Copy link

SQLSTATE[08006] [7] could not translate host name "citus_master" to address: Name or service not known

c8adcc9da16c        citusdata/membership-manager:0.2.0   "python -u ./manager…"   23 minutes ago      Up 7 minutes (healthy)                                              citus_manager
b774fdb21b50        citusdata/citus:8.2.2                "docker-entrypoint.s…"   23 minutes ago      Up 7 minutes (healthy)   0.0.0.0:5433->5432/tcp                     citus_master
version: '2.1'

services:
  master:
    container_name: "${COMPOSE_PROJECT_NAME:-citus}_master"
    image: 'citusdata/citus:8.2.2'
    ports: ["${MASTER_EXTERNAL_PORT:-5432}:5432"]
    labels: ['com.citusdata.role=Master']
    environment:
    - POSTGRES_DB=default
    - POSTGRES_USER=default
    - POSTGRES_PASSWORD=secret
  worker:
    image: 'citusdata/citus:8.2.2'
    labels: ['com.citusdata.role=Worker']
    depends_on: { manager: { condition: service_healthy } }
    environment:
    - POSTGRES_DB=default
    - POSTGRES_USER=default
    - POSTGRES_PASSWORD=secret
  manager:
    container_name: "${COMPOSE_PROJECT_NAME:-citus}_manager"
    image: 'citusdata/membership-manager:0.2.0'
    volumes: ['/var/run/docker.sock:/var/run/docker.sock']
    depends_on: { master: { condition: service_healthy } }
    environment:
    - POSTGRES_DB=default
    - POSTGRES_USER=default
    - POSTGRES_PASSWORD=secret

Seems to have some issue with image when trying to connect with image with any web application

@mubaidr
Copy link

mubaidr commented Apr 6, 2020

Make sure you donot have env variable COMPOSE_PROJECT_NAME set.

@mubaidr
Copy link

mubaidr commented Apr 13, 2020

Also setting ENV variable in manager service: ${COMPOSE_PROJECT_NAME:-citus}_master

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