add docker registry to gitlab node
parent
562c625aae
commit
75cbc10361
|
|
@ -2,9 +2,22 @@ version: "3.9"
|
|||
|
||||
services:
|
||||
|
||||
docker-registry:
|
||||
image: registry:2.8.1
|
||||
container_name: docker-registry
|
||||
restart: always
|
||||
environment:
|
||||
REGISTRY_HTTP_ADDR: 0.0.0.0:80
|
||||
ports:
|
||||
- 80
|
||||
volumes:
|
||||
- ./volumes/docker-registry:/var/lib/registry
|
||||
|
||||
gitlab:
|
||||
image: 'gitlab/gitlab-ee:15.9.2-ee.0'
|
||||
container_name: gitlab
|
||||
links:
|
||||
- docker-registry
|
||||
restart: always
|
||||
hostname: 'localhost'
|
||||
environment:
|
||||
|
|
@ -20,6 +33,10 @@ services:
|
|||
external_url '${GITLAB_IP_OR_DNS}'
|
||||
# gitlab_rails['gitlab_https'] = true
|
||||
# gitlab_rails['gitlab_port'] = 443
|
||||
|
||||
# container registry setup
|
||||
|
||||
registry_external_url 'http://docker-registry/'
|
||||
ports:
|
||||
- 0.0.0.0:80:80
|
||||
- 0.0.0.0:443:443
|
||||
|
|
|
|||
Loading…
Reference in New Issue