mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-04 23:17:31 +02:00
update gitlab
This commit is contained in:
parent
1a376561d0
commit
7cb74cb16d
@ -10,10 +10,11 @@ deployment tool.
|
|||||||
```
|
```
|
||||||
gitlab:
|
gitlab:
|
||||||
image: gitlab/gitlab-ce
|
image: gitlab/gitlab-ce
|
||||||
hostname: gitlab.example.com
|
hostname: git.example.com
|
||||||
environment:
|
environment:
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
external_url 'https://gitlab.example.com'
|
external_url 'https://git.example.com'
|
||||||
|
nginx['redirect_http_to_https'] = true
|
||||||
ports:
|
ports:
|
||||||
- "22:22"
|
- "22:22"
|
||||||
- "80:80"
|
- "80:80"
|
||||||
@ -25,6 +26,8 @@ gitlab:
|
|||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> You can put TLS crt+key into `./gitlab/config/ssl/`.
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -36,7 +39,7 @@ $ systemctl restart ssh
|
|||||||
|
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
|
||||||
$ firefox https://gitlab.example.com
|
$ firefox https://git.example.com
|
||||||
```
|
```
|
||||||
|
|
||||||
## backup volumes
|
## backup volumes
|
||||||
@ -54,5 +57,6 @@ $ tar tzf gitlab.tgz
|
|||||||
## read more
|
## read more
|
||||||
|
|
||||||
- http://docs.gitlab.com/omnibus/docker/
|
- http://docs.gitlab.com/omnibus/docker/
|
||||||
|
- https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md
|
||||||
|
|
||||||
[1]: https://gitlab.com/
|
[1]: https://gitlab.com/
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
gitlab:
|
gitlab:
|
||||||
image: gitlab/gitlab-ce
|
image: gitlab/gitlab-ce
|
||||||
hostname: gitlab.example.com
|
hostname: git.example.com
|
||||||
environment:
|
environment:
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
external_url 'https://gitlab.example.com'
|
external_url 'https://git.example.com'
|
||||||
|
nginx['redirect_http_to_https'] = true
|
||||||
ports:
|
ports:
|
||||||
- "22:22"
|
- "22:22"
|
||||||
- "80:80"
|
- "80:80"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user