k3s/services/gitlab/compose-gitlab.yaml
Astra Logical 5aa9f38cb9 syncthing
2026-03-05 12:57:15 -05:00

38 lines
1.1 KiB
YAML

---
services:
gitlab:
image: gitlab/gitlab-ce
container_name: gitlab
restart: always
# hostname: 'lab.astralogical.duckdns.org'
hostname: 'lab.mynest.love'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://lab.mynest.love'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
nginx['listen_https'] = false
nginx['redirect_http_to_https'] = true
gitlab_sshd['enable'] = true
gitlab_sshd['listen_address'] = '[::]:2222'
gitlab_sshd['proxy_protocol'] = true
gitlab_sshd['proxy_policy'] = "use"
ports:
- '8092:443'
- '2222:22'
volumes:
- /docker/gitlab/config:/etc/gitlab
- /docker/gitlab/logs:/var/log/gitlab
- /docker/gitlab/data:/var/opt/gitlab
shm_size: '256m'
logging:
driver: "json-file"
options:
max-size: "512m"
runner:
image: gitlab/gitlab-runner
container_name: gitlab-runner
restart: always
volumes:
- /docker/gitlab-runner/config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock