Add Gitlab container registry config and docs
This commit is contained in:
parent
e000bc7df0
commit
9ba697f06e
10
server/config/gitlab/README.md
Normal file
10
server/config/gitlab/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Updating GitLab configuration
|
||||||
|
This gitlab instance is using the omnibus package.
|
||||||
|
See [GitLab Omnibus Reconfigure](https://docs.gitlab.com/ee/administration/restart_gitlab.html#omnibus-gitlab-reconfigure) for official docs on reconfiguration.
|
||||||
|
Here are the basic steps:
|
||||||
|
1. Update the `GITLAB_OMNIBUS_CONFIG` environment variable in `docker-compose.yml`. Add the desired omnibus configuration lines.
|
||||||
|
2. Run `docker exec -it gitlab /bin/bash` to enter the container.
|
||||||
|
3. Run `vi /etc/gitlab/gitlab.rb` to begin editing the config file. Make the necessary changes (`i` to enter insert mode), then save (`esc`, then `:wq`, enter).
|
||||||
|
4. Run `gitlab-ctl diff-config` to compare the new config file with the *default* config file (not previous).
|
||||||
|
5. Run `gitlab-ctl reconfigure` to apply the changes.
|
||||||
|
6. Confirm the value set in step 1 is still correct.
|
@ -10,6 +10,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
GITLAB_OMNIBUS_CONFIG: |
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
external_url 'https://gitlab.jafner.net'
|
external_url 'https://gitlab.jafner.net'
|
||||||
|
registry_external_url 'https://gitlab.jafner.net:5050'
|
||||||
gitlab_rails['gitlab_shell_ssh_port'] = 2229
|
gitlab_rails['gitlab_shell_ssh_port'] = 2229
|
||||||
nginx['listen_https'] = false
|
nginx['listen_https'] = false
|
||||||
nginx['listen_port'] = 80
|
nginx['listen_port'] = 80
|
||||||
@ -18,6 +19,7 @@ services:
|
|||||||
#- '80:80'
|
#- '80:80'
|
||||||
#- '443:443'
|
#- '443:443'
|
||||||
- '2229:22'
|
- '2229:22'
|
||||||
|
- '5050:5050'
|
||||||
volumes:
|
volumes:
|
||||||
- '${DOCKER_DATA}/config:/etc/gitlab'
|
- '${DOCKER_DATA}/config:/etc/gitlab'
|
||||||
- '${DOCKER_DATA}/logs:/var/log/gitlab'
|
- '${DOCKER_DATA}/logs:/var/log/gitlab'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user