28 lines
740 B
YAML
28 lines
740 B
YAML
services:
|
|
gitlab:
|
|
container_name: gitlab
|
|
image: gitlab/gitlab-ce:17.9.2-ce.0
|
|
restart: on-failure:3
|
|
ports:
|
|
- "22:22"
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- "./config:/etc/gitlab"
|
|
- "./logs:/var/log/gitlab"
|
|
- "./data:/var/opt/gitlab"
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
external_url 'https://git.example.com'
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.routers.gitlab.Rule=Host(`git.example.com`)"
|
|
- "traefik.http.routers.gitlab.service=gitlab"
|
|
- "traefik.http.routers.gitlab.entrypoints=websecure"
|
|
- "traefik.http.services.gitlab.loadBalancer.server.port=80"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|