runnging gitlab with docker-compose
make sure you have {$HOME}/gitlab and
make sure your {$HOME}/gitlab have writable and readable right
run this command nodeamon, then you can get the container
docker run \
-p 127.0.0.1:30000:80 \
-p 127.0.0.1:30001:22 \
-p 127.0.0.1:30002:443 \
-v ${HOME}/gitlab/config:/etc/gitlab \
-v ${HOME}/gitlab/logs:/var/log/gitlab \
-v ${HOME}/gitlab/data:/var/opt/gitlab \
--name gitlab siya/gitlab
http://localgitlab.com:30000 is your gitlab web
http://localgitlab.com:30001 is your gitlab ssh
http://localgitlab.com:30002 is your gitlab https
${HOME}/gitlab/config is the gitlab config
${HOME}/gitlab/logs is the gitlab logs
${HOME}/gitlab/data is the gitlab data
if you want to change more variables to your gitlab.
you can view my project
siyaEng/docker-gitlab
the docker-compose.build.yml build this siya/gitlab image
the docker-compose.yml, you can run with docker-compose
Content type
Image
Digest
Size
540.2 MB
Last updated
about 8 years ago
docker pull siya/gitlab