mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
Add gitlab README.md
This commit is contained in:
parent
4fe189b796
commit
557b00f0f3
44
gitlab/README.md
Normal file
44
gitlab/README.md
Normal file
@ -0,0 +1,44 @@
|
||||
gitlab
|
||||
======
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```
|
||||
gitlab:
|
||||
image: gitlab/gitlab-ce
|
||||
ports:
|
||||
- "22:22"
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
restart: always
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ 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
|
||||
```
|
||||
|
||||
## 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user