docker/gitlab/docker-compose.yml

32 lines
859 B
YAML
Raw Permalink Normal View History

2021-05-09 22:07:17 +02:00
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"
2021-05-09 22:07:17 +02:00
- "traefik.http.services.app.loadbalancer.server.port=80"
- "traefik.http.routers.gitlab.entrypoints=websecure"
- "traefik.http.routers.gitlab.rule=Host(`${CN}`)"
2021-05-09 22:07:17 +02:00
networks:
proxy:
external: true