SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Список вопросов Печать

Как установить и настроить GitLab?


Метки: git gitlab docker docker-compose.yml 

Ответы

RemiZOffAlex  Создано: 2018-10-06 16:27:52.293227  Обновлено: 2018-10-06 16:27:52.293227
yum install -y curl policycoreutils-python
wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
sh script.rpm.sh
EXTERNAL_URL="http://gitlab.specialistoff.net" yum install -y gitlab-ce
RemiZOffAlex  Создано: 2020-06-05 06:07:29.917407  Обновлено: 2020-06-05 06:07:29.917407

Docker

pip install docker-compose

Загрузка образов

docker pull gitlab/gitlab-ce:latest
docker pull gitlab/gitlab-runner:latest

Запуск

docker run --detach \
--hostname gitlab.specialistoff.net \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/gitlab/config:/etc/gitlab \
--volume $GITLAB_HOME/gitlab/logs:/var/log/gitlab \
--volume $GITLAB_HOME/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

docker-compose

cat << EOF > root_password.txt
bigpassword
EOF

cat << EOF > docker-compose.yml
EOF

Возможно будут интересны и другие вопросы