C2A-Installation-Server/docker/install-gitlab.sh

12 lines
514 B
Bash
Raw Normal View History

2019-04-03 08:44:05 +00:00
docker run --detach \
--name gitlab \
--publish 8001:80 \
2019-04-03 08:44:05 +00:00
--publish 2201:22 \
--hostname gitlab.c2a-systeme.fr \
2019-04-03 08:44:05 +00:00
--volume /srv/gitlab/config:/etc/gitlab \
--env GITLAB_OMNIBUS_CONFIG="external_url 'https://gitlab.c2a-systeme.fr/';gitlab_rails['gitlab_shell_ssh_port'] = 2201;nginx['listen_port'] = 80;nginx['listen_https'] = false;" \
2019-04-03 08:44:05 +00:00
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
--restart unless-stopped \
gitlab/gitlab-ce:latest