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