29 lines
1.0 KiB
Django/Jinja
Executable File
29 lines
1.0 KiB
Django/Jinja
Executable File
version: '3.8'
|
|
services:
|
|
gitlab:
|
|
image: 'gitlab/gitlab-ce:latest'
|
|
restart: always
|
|
hostname: 'localhost'
|
|
container_name: gitlab-ce
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
gitlab_rails['time_zone'] = 'Europe/Berlin'
|
|
external_url 'https://{{gitlab_hostname}}'
|
|
gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}}
|
|
nginx['listen_port'] = 443
|
|
nginx['redirect_http_to_https'] = true
|
|
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.cer"
|
|
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
|
|
nginx['ssl_protocols'] = "TLSv1.1 TLSv1.2"
|
|
registry_external_url = 'https://registry.{{gitlab_hostname}}'
|
|
registry['registry_http_addr'] = "0.0.0.0:5000"
|
|
registry_nginx['enable'] = false
|
|
ports:
|
|
- '{{http_ssl}}:443'
|
|
- '{{ssh_port}}:22'
|
|
volumes:
|
|
- '{{gitlab_dir[1]}}:/etc/gitlab'
|
|
- '{{gitlab_dir[2]}}:/var/log/gitlab'
|
|
- '{{gitlab_dir[3]}}:/var/opt/gitlab'
|
|
shm_size: '{{shm_size}}'
|