You are not logged in.

#1 2015-04-19 20:09:41

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

[solved]git & gitlab (docker) problems

I have problem with gitlab. I am using docker for it' starting.

docker-compose.yml

postgresql:
  image: sameersbn/postgresql:9.4
  environment:
    - DB_USER=gitlab
    - DB_PASS=secretpassword
    - DB_NAME=gitlabhq_production
gitlab:
  image: sameersbn/gitlab:7.9.3  
  links:
   - redis:redisio
   - postgresql:postgresql
  ports:
   - "10080:80"
   - "10022:22"
redis:
  image: sameersbn/redis:latest

I cannot clone or push repo.

When I try to clone repo I get this message:

$git clone http://localhost/lordofinsomnia/blog.git

Cloning into 'blog'...
fatal: unable to access 'http://localhost/lordofinsomnia/blog.git/': Failed to connect to localhost port 80: Connection refused

With git protocol I am assked for password, which I don't know.

git clone git@localhost:lordofinsomnia/blog.git
Cloning into 'blog'...
git@localhost's password:

Thanks in advance.

Last edited by LordOfInsomnia (2015-04-21 10:50:45)

Offline

#2 2015-04-19 21:19:55

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [solved]git & gitlab (docker) problems

First problem is you are trying to use privileged ports (80 and 22) as a user and not as root. If you change the ports to "10080:10080" and "10022:10022", then you can access the website at http://localhost:10080.

Problem 2 is getting email working so when you sign up for an account, the confirmation email will actually get sent. Good luck with that smile

Scott

Offline

#3 2015-04-20 16:25:03

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [solved]git & gitlab (docker) problems

Sorry....bad information. You can still use port 80 and 22 because docker runs as root (<facepalm>).  I didn't wait long enough for the web server to startup before trying to access the page.

I think you just need to figure out how to register a user. If that's not an issue, let me know and I can help test some more.

Scott

Offline

#4 2015-04-21 10:49:28

LordOfInsomnia
Member
Registered: 2011-10-13
Posts: 69

Re: [solved]git & gitlab (docker) problems

I found a problem for cloning, i missed a port in link. smile

git clone http://localhost:10080/lordofinsomnia/blog.git

Solved. smile

Activation was a problem, I had problem with enviroment variables. I will try it later today. smile
Thx. smile

Offline

Board footer

Powered by FluxBB