2019-04-03 07:42:41 +00:00
|
|
|
docker run --detach \
|
2019-04-03 08:09:15 +00:00
|
|
|
--name gitlab \
|
2019-04-03 07:42:41 +00:00
|
|
|
--publish 8001:80 \
|
|
|
|
--publish 44301:443 \
|
2019-04-03 07:09:58 +00:00
|
|
|
--publish 2201:22 \
|
|
|
|
--hostname gitlab.c2a-system.dev \
|
2019-04-03 07:42:41 +00:00
|
|
|
--env GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.c2a-system.dev/'; gitlab_rails['gitlab_shell_ssh_port'] = 2201;" \
|
2019-04-03 07:09:58 +00:00
|
|
|
--volume /srv/gitlab/config:/etc/gitlab \
|
|
|
|
--volume /srv/gitlab/logs:/var/log/gitlab \
|
|
|
|
--volume /srv/gitlab/data:/var/opt/gitlab \
|
|
|
|
--restart unless-stopped \
|
2019-04-03 08:09:15 +00:00
|
|
|
gitlab/gitlab-ce:latest
|