mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-26 09:00:52 +02:00
1.0 KiB
1.0 KiB
gitlab
GitLab includes Git repository management, code reviews, issue tracking, wikis, and more, plus GitLab CI, an easy-to-use continuous integration and deployment tool.
docker-compose.yml
gitlab:
image: gitlab/gitlab-ce
hostname: gitlab.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
ports:
- "22:22"
- "80:80"
- "443:443"
volumes:
- ./gitlab/config:/etc/gitlab
- ./gitlab/logs:/var/log/gitlab
- ./gitlab/data:/var/opt/gitlab
restart: always
up and running
$ vi /etc/ssh/sshd_config
- Port 22
+ Port 2222
$ systemctl restart ssh
$ docker-compose up -d
$ firefox https://gitlab.example.com
backup volumes
$ docker run --rm \
--volumes-from gitlab_gitlab_1 \
-v $PWD:/tmp \
alpine \
tar czf /tmp/gitlab.tgz /etc/gitlab /var/opt/gitlab /var/log/gitlab
$ tar tzf gitlab.tgz