1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update gitlab

This commit is contained in:
kev 2016-06-09 23:41:17 +08:00
parent a38e36de2e
commit 1a376561d0
3 changed files with 31 additions and 14 deletions

@ -1,15 +1,27 @@
gitlab
======
[GitLab][1] 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
```
@ -19,16 +31,12 @@ gitlab:
$ vi /etc/ssh/sshd_config
- Port 22
+ Port 2222
$ systemctl restart ssh
$ docker-compose up -d
$ docker-compose exec gitlab bash
>>> vi /etc/gitlab/gitlab.rb
+ external_url 'http://your-domain-name'
>>> gitlab-ctl reconfigure
>>> exit
$ firefox http://your-domain-name
$ firefox https://gitlab.example.com
```
## backup volumes
@ -42,3 +50,9 @@ $ docker run --rm \
$ tar tzf gitlab.tgz
```
## read more
- http://docs.gitlab.com/omnibus/docker/
[1]: https://gitlab.com/

@ -1,12 +1,15 @@
gitlab:
image: gitlab/gitlab-ce
hostname: gitlab.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
ports:
- "8443:443"
- "8080:80"
- "2222:22"
- "22:22"
- "80:80"
- "443:443"
volumes:
- /srv/gitlab/config:/etc/gitlab
- /srv/gitlab/logs:/var/log/gitlab
- /srv/gitlab/data:/var/opt/gitlab
privileged: true
- ./gitlab/config:/etc/gitlab
- ./gitlab/logs:/var/log/gitlab
- ./gitlab/data:/var/opt/gitlab
restart: always

@ -21,7 +21,7 @@ phpvirtualbox:
> - Make sure you can login `remote-server` with `username:password`.
> - ISO images can be placed at `/data` directory of `remote-server`.
> - During the OS installation, you can connect it with RDC program.
> - During the OS installation, you can connect to it with RDP viewer.
### vboxweb.service