GITLAB_URL=localgitlab.com
GITLAB_HTTP_URL=http://localgitlab.com
GITLAB_URL=localgitlab.com
GITLAB_DEFAULT_CAN_CREATE_GROUP=true
GITLAB_USERNAME_CHANGING_ENABLED=true
GITLAB_WEB_PORT=30000
GITLAB_SHELL_SSH_PORT=30001
GITLAB_HTTPS_PORT=30002
you can change ${HOME} to your directory, make sure you have writable and readable
volumes:
- '${HOME}/gitlab/config:/etc/gitlab' #gitlab config
- '${HOME}/gitlab/logs:/var/log/gitlab'#gitlab logs
- '${HOME}/gitlab/data:/var/opt/gitlab'#gitlab datas
all about gitlab info is volumed ${HOME}/gitlab,so it is very import to you.
cd ${docker-gitlab-project}
docker-compose up --build
docker-compose up -d
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a347ed312115 gitlab/gitlab-ce:latest "/assets/wrapper" 17 minutes ago Up 3 seconds (health: starting) 0.0.0.0:30001->22/tcp, 0.0.0.0:30000->80/tcp, 0.0.0.0:30002->443/tcp gitlab
like http://localgitlab.com:30000
is my gitlab-web address