This commit is contained in:
CDaut 2023-08-28 00:35:45 +02:00
parent ce1cbf864c
commit b32431e33d
3 changed files with 62 additions and 0 deletions

7
gitlab/doc.md Normal file
View file

@ -0,0 +1,7 @@
# GitLab
- Extrem ressourcenintensiv
- Bei diesem Compose file ist ein runner dabei
- Ordner: `config, data, logs`
- `isrg-root-x1-cross-signed.pem` nötig (https://letsencrypt.org/certificates/)
- Runner braucht docker socket um neue Container spawnen zu können

27
gitlab/docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://git.cdaut.de'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '5443:443'
- '2224:22'
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
shm_size: '256m'
runner:
image: 'gitlab/gitlab-runner:alpine'
restart: always
volumes:
- './runner_config.toml:/etc/gitlab-runner/config.toml'
- '/etc/letsencrypt/live/git.cdaut.de/fullchain.pem:/etc/gitlab-runner/certs/git.cdaut.de.crt'
- '/var/run/docker.sock:/var/run/docker.sock'

28
gitlab/runner_config.toml Normal file
View file

@ -0,0 +1,28 @@
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "docker_1"
url = "https://git.cdaut.de"
id = 0
token = "<redacted>"
token_obtained_at = 0001-01-01T00:00:00Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "ubuntu"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0