Add docker registry to Gitlab

This commit is contained in:
Paul-Henri Froidmont 2019-01-29 00:31:40 +01:00
parent 821ea206d9
commit 327fdd209f
2 changed files with 17 additions and 12 deletions

View file

@ -10,16 +10,19 @@ services:
image: 'gitlab/gitlab-ce:latest'
hostname: ${GITLAB_DOMAIN}
labels:
- "traefik.backend=gitlab"
- "traefik.docker.network=web"
- "traefik.frontend.rule=Host:gitlab.banditlair.com"
- "traefik.enable=true"
- "traefik.port=9090"
- "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:
- "2224:22"
expose:
- 9090
- 5005
volumes:
- ./config:/etc/gitlab
- /var/log/gitlab:/var/log/gitlab