| ... | ... | @@ -62,16 +62,14 @@ sudo docker-compose --version |
|
|
|
sudo nano docker-compose.yml
|
|
|
|
```
|
|
|
|
2. Insert to file:
|
|
|
|
* hostname: leave empty
|
|
|
|
* external_url: http://your.ip
|
|
|
|
```
|
|
|
|
web:
|
|
|
|
image: 'gitlab/gitlab-ce:latest'
|
|
|
|
restart: always
|
|
|
|
hostname: 'gitlab.example.com'
|
|
|
|
hostname: ''
|
|
|
|
environment:
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
external_url 'https://gitlab.example.com'
|
|
|
|
external_url 'YOUR IP HERE'
|
|
|
|
# Add any other gitlab.rb configuration here, each on its own line
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
| ... | ... | @@ -82,3 +80,7 @@ web: |
|
|
|
- '/srv/gitlab/logs:/var/log/gitlab'
|
|
|
|
- '/srv/gitlab/data:/var/opt/gitlab'
|
|
|
|
```
|
|
|
|
3. To start GitLab:
|
|
|
|
```
|
|
|
|
sudo docker-compose up -d
|
|
|
|
``` |