Gitlab - A git server
Docker compose
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab'
labels:
- "traefik.enable=true"
- "traefik.docker.network=webv2"
- "traefik.http.routers.gitlab.rule=Host(`gitlab.domain.com`)"
- "traefik.http.routers.gitlab.entrypoints=web-insecure"
- "traefik.http.routers.gitlab.middlewares=redirect@file"
- "traefik.http.routers.gitlab-secured.rule=Host(`gitlab.domain.com`)"
- "traefik.http.routers.gitlab-secured.tls=true"
- "traefik.http.routers.gitlab-secured.tls.certResolver=main"
- "traefik.http.routers.gitlab-secured.entrypoints=web-secure"
- "traefik.http.services.gitlab.loadBalancer.server.port=80"
- "traefik.http.routers.gitlab.service=gitlab"
- "traefik.http.routers.gitlab-secured.service=gitlab"
- "traefik.http.routers.gitprom.rule=Host(`gitprom.domain.com`)"
- "traefik.http.routers.gitprom.entrypoints=web-insecure"
- "traefik.http.routers.gitprom.middlewares=redirect@file"
- "traefik.http.routers.gitprom-secured.rule=Host(`gitprom.domain.com`)"
- "traefik.http.routers.gitprom-secured.tls=true"
- "traefik.http.routers.gitprom-secured.tls.certResolver=main"
- "traefik.http.routers.gitprom-secured.entrypoints=web-secure"
- "traefik.http.services.gitprom.loadBalancer.server.port=9090"
- "traefik.http.routers.gitprom.service=gitprom"
- "traefik.http.routers.gitprom-secured.service=gitprom"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.domain.com'
nginx['listen_https'] = false
nginx['listen_port'] = 80
prometheus['listen_address'] = 'localhost:9090'
volumes:
- /path/to/config:/etc/gitlab
- /path/to/logs:/var/log/gitlab
- /path/to/data:/var/opt/gitlab
networks:
- webv2
version: "2"
No Comments