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

ERROR: Service 'gitlab' has a link to service 'gitlab-redis:redisio' which is undefined. #1106

Closed
worldask opened this issue Mar 1, 2017 · 2 comments

Comments

@worldask
Copy link

worldask commented Mar 1, 2017

I tried to run docker-gitlab using docker-compose, following is my docker-compose.yml

redis:
   image: sameersbn/redis:latest
   container_name: gitlab-redis
   restart: always
   volumes:
     - /data/gitlab/redis:/var/lib/redis

 gitlab:
   image: sameersbn/gitlab:latest
   container_name: gitlab
   restart: always
   links:
     - gitlab-redis:redisio
   ports:
     - "80:80"
     - "10022:22"
   hostname: gitlab.example.com
   environment:
     - GITLAB_HOST=gitlab.example.com
     - GITLAB_PORT=80
     - GITLAB_SSH_PORT=10022
     - GITLAB_SECRETS_DB_KEY_BASE=xxx
     - GITLAB_SECRETS_SECRET_KEY_BASE=xxx
     - GITLAB_SECRETS_OTP_KEY_BASE=xxx
     - DB_ADAPTER=mysql2
     - DB_HOST=172.18.0.1
     - DB_NAME=gitlabhq_production
     - DB_USER=gitlab
     - DB_PASS=xxx
   volumes:
     - /data/gitlab:/home/git/data

When I ran docker-compose up -d, it gave this error message
ERROR: Service 'gitlab' has a link to service 'gitlab-redis:redisio' which is undefined.

What's wrong?

@jostyee
Copy link
Contributor

jostyee commented Mar 1, 2017

you named redis for your Redis container but refer it as redisio at - gitlab-redis:redisio

plz don't just copy paste a config file, read the doc before using.

@worldask worldask closed this as completed Mar 1, 2017
@worldask worldask reopened this Mar 1, 2017
@worldask
Copy link
Author

worldask commented Mar 1, 2017

@jostyee Thanks, you're right. That's my fault, I thought it'll link to container_name.

@worldask worldask closed this as completed Mar 1, 2017
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