mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-23 12:08:49 +02:00
update gitlab
This commit is contained in:
parent
a38e36de2e
commit
1a376561d0
@ -1,15 +1,27 @@
|
|||||||
gitlab
|
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
|
## docker-compose.yml
|
||||||
|
|
||||||
```
|
```
|
||||||
gitlab:
|
gitlab:
|
||||||
image: gitlab/gitlab-ce
|
image: gitlab/gitlab-ce
|
||||||
|
hostname: gitlab.example.com
|
||||||
|
environment:
|
||||||
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
external_url 'https://gitlab.example.com'
|
||||||
ports:
|
ports:
|
||||||
- "22:22"
|
- "22:22"
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
- ./gitlab/config:/etc/gitlab
|
||||||
|
- ./gitlab/logs:/var/log/gitlab
|
||||||
|
- ./gitlab/data:/var/opt/gitlab
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -19,16 +31,12 @@ gitlab:
|
|||||||
$ vi /etc/ssh/sshd_config
|
$ vi /etc/ssh/sshd_config
|
||||||
- Port 22
|
- Port 22
|
||||||
+ Port 2222
|
+ Port 2222
|
||||||
|
|
||||||
$ systemctl restart ssh
|
$ systemctl restart ssh
|
||||||
|
|
||||||
$ docker-compose up -d
|
$ 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
|
## backup volumes
|
||||||
@ -42,3 +50,9 @@ $ docker run --rm \
|
|||||||
|
|
||||||
$ tar tzf gitlab.tgz
|
$ tar tzf gitlab.tgz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## read more
|
||||||
|
|
||||||
|
- http://docs.gitlab.com/omnibus/docker/
|
||||||
|
|
||||||
|
[1]: https://gitlab.com/
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
gitlab:
|
gitlab:
|
||||||
image: gitlab/gitlab-ce
|
image: gitlab/gitlab-ce
|
||||||
|
hostname: gitlab.example.com
|
||||||
|
environment:
|
||||||
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
external_url 'https://gitlab.example.com'
|
||||||
ports:
|
ports:
|
||||||
- "8443:443"
|
- "22:22"
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
- "2222:22"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/gitlab/config:/etc/gitlab
|
- ./gitlab/config:/etc/gitlab
|
||||||
- /srv/gitlab/logs:/var/log/gitlab
|
- ./gitlab/logs:/var/log/gitlab
|
||||||
- /srv/gitlab/data:/var/opt/gitlab
|
- ./gitlab/data:/var/opt/gitlab
|
||||||
privileged: true
|
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -21,7 +21,7 @@ phpvirtualbox:
|
|||||||
|
|
||||||
> - Make sure you can login `remote-server` with `username:password`.
|
> - Make sure you can login `remote-server` with `username:password`.
|
||||||
> - ISO images can be placed at `/data` directory of `remote-server`.
|
> - 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
|
### vboxweb.service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user