1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

update gitlab

This commit is contained in:
kev 2016-06-10 12:35:11 +08:00
parent 1a376561d0
commit 7cb74cb16d
2 changed files with 10 additions and 5 deletions

@ -10,10 +10,11 @@ deployment tool.
```
gitlab:
image: gitlab/gitlab-ce
hostname: gitlab.example.com
hostname: git.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
external_url 'https://git.example.com'
nginx['redirect_http_to_https'] = true
ports:
- "22:22"
- "80:80"
@ -25,6 +26,8 @@ gitlab:
restart: always
```
> You can put TLS crt+key into `./gitlab/config/ssl/`.
## up and running
```
@ -36,7 +39,7 @@ $ systemctl restart ssh
$ docker-compose up -d
$ firefox https://gitlab.example.com
$ firefox https://git.example.com
```
## backup volumes
@ -54,5 +57,6 @@ $ tar tzf gitlab.tgz
## read more
- http://docs.gitlab.com/omnibus/docker/
- https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md
[1]: https://gitlab.com/

@ -1,9 +1,10 @@
gitlab:
image: gitlab/gitlab-ce
hostname: gitlab.example.com
hostname: git.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
external_url 'https://git.example.com'
nginx['redirect_http_to_https'] = true
ports:
- "22:22"
- "80:80"