mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add docker registry to Gitlab
This commit is contained in:
parent
821ea206d9
commit
327fdd209f
2 changed files with 17 additions and 12 deletions
|
|
@ -10,16 +10,19 @@ services:
|
||||||
image: 'gitlab/gitlab-ce:latest'
|
image: 'gitlab/gitlab-ce:latest'
|
||||||
hostname: ${GITLAB_DOMAIN}
|
hostname: ${GITLAB_DOMAIN}
|
||||||
labels:
|
labels:
|
||||||
- "traefik.backend=gitlab"
|
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
- "traefik.frontend.rule=Host:gitlab.banditlair.com"
|
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.port=9090"
|
|
||||||
- "traefik.default.protocol=http"
|
- "traefik.default.protocol=http"
|
||||||
|
- "traefik.backend=gitlab"
|
||||||
|
- "traefik.gitlab.frontend.rule=Host:gitlab.banditlair.com"
|
||||||
|
- "traefik.gitlab.port=9090"
|
||||||
|
- "traefik.registry.frontend.rule=Host:registry.banditlair.com"
|
||||||
|
- "traefik.registry.port=5005"
|
||||||
ports:
|
ports:
|
||||||
- "2224:22"
|
- "2224:22"
|
||||||
expose:
|
expose:
|
||||||
- 9090
|
- 9090
|
||||||
|
- 5005
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/gitlab
|
- ./config:/etc/gitlab
|
||||||
- /var/log/gitlab:/var/log/gitlab
|
- /var/log/gitlab:/var/log/gitlab
|
||||||
|
|
|
||||||
|
|
@ -425,12 +425,12 @@ gitlab_rails['smtp_tls'] = true
|
||||||
##! Docs: https://docs.gitlab.com/ce/administration/container_registry.html
|
##! Docs: https://docs.gitlab.com/ce/administration/container_registry.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# registry_external_url 'https://registry.gitlab.example.com'
|
registry_external_url 'https://registry.banditlair.com'
|
||||||
|
|
||||||
### Settings used by GitLab application
|
### Settings used by GitLab application
|
||||||
# gitlab_rails['registry_enabled'] = true
|
gitlab_rails['registry_enabled'] = true
|
||||||
# gitlab_rails['registry_host'] = "registry.gitlab.example.com"
|
gitlab_rails['registry_host'] = "registry.banditlair.com"
|
||||||
# gitlab_rails['registry_port'] = "5005"
|
gitlab_rails['registry_port'] = "443"
|
||||||
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
|
# gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"
|
||||||
|
|
||||||
###! **Do not change the following 3 settings unless you know what you are
|
###! **Do not change the following 3 settings unless you know what you are
|
||||||
|
|
@ -1212,15 +1212,17 @@ nginx['proxy_set_headers'] = {
|
||||||
# You just have to change the key "nginx['some_settings']" with "registry_nginx['some_settings']"
|
# You just have to change the key "nginx['some_settings']" with "registry_nginx['some_settings']"
|
||||||
|
|
||||||
# Below you can find settings that are exclusive to "Registry NGINX"
|
# Below you can find settings that are exclusive to "Registry NGINX"
|
||||||
# registry_nginx['enable'] = false
|
registry_nginx['enable'] = true
|
||||||
|
registry_nginx['listen_port'] = 5005
|
||||||
|
registry_nginx['listen_https'] = false
|
||||||
|
|
||||||
# registry_nginx['proxy_set_headers'] = {
|
registry_nginx['proxy_set_headers'] = {
|
||||||
# "Host" => "$http_host",
|
# "Host" => "$http_host",
|
||||||
# "X-Real-IP" => "$remote_addr",
|
# "X-Real-IP" => "$remote_addr",
|
||||||
# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
|
# "X-Forwarded-For" => "$proxy_add_x_forwarded_for",
|
||||||
# "X-Forwarded-Proto" => "https",
|
"X-Forwarded-Proto" => "https",
|
||||||
# "X-Forwarded-Ssl" => "on"
|
"X-Forwarded-Ssl" => "on"
|
||||||
# }
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Prometheus
|
## Prometheus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue