docker/gitlab/docker-compose.yml

31 lines
799 B
YAML

version: "3.8"
services:
app:
image: gitlab/gitlab-ce:13.10.2-ce.0
restart: "no"
hostname: "${CN}"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url "https://${CN}"
# Add any other gitlab.rb configuration here, each on its own line
nginx['listen_https'] = false
nginx['listen_port'] = 80
networks:
- proxy
ports:
- "${SSH_PORT}:22"
volumes:
- ${DATA_PATH}/config:/etc/gitlab
- ${DATA_PATH}/logs:/var/log/gitlab
- ${DATA_PATH}/data:/var/opt/gitlab
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitlab.service=app"
- "traefik.http.services.app.loadbalancer.server.port=80"
- "traefik.http.routers.gitlab.rule=Host(`${CN}`)"
networks:
proxy:
external: true