2023-12-28 00:28:30 +01:00
|
|
|
services:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2023-12-28 00:28:30 +01:00
|
|
|
web:
|
|
|
|
image: 'gitlab/gitlab-ee:latest'
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2023-12-28 00:28:30 +01:00
|
|
|
hostname: '{{domain}}'
|
|
|
|
environment:
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
external_url 'https://{{domain}}'
|
2023-12-28 12:33:48 +01:00
|
|
|
postgresql['enable'] = false
|
2023-12-28 00:28:30 +01:00
|
|
|
gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}}
|
2023-12-28 12:33:48 +01:00
|
|
|
gitlab_rails['db_adapter'] = 'postgresql'
|
|
|
|
gitlab_rails['db_encoding'] = 'utf8'
|
|
|
|
gitlab_rails['db_host'] = '{{database_host}}'
|
|
|
|
gitlab_rails['db_port'] = 5432
|
|
|
|
gitlab_rails['db_username'] = '{{database_username}}'
|
|
|
|
gitlab_rails['db_password'] = '{{database_password}}'
|
2024-01-06 14:32:49 +01:00
|
|
|
gitlab_rails['db_database'] = "{{database_name}}"
|
2023-12-28 12:33:48 +01:00
|
|
|
nginx['listen_port'] = 80
|
|
|
|
nginx['listen_https'] = false
|
|
|
|
|
2023-12-28 18:30:31 +01:00
|
|
|
gitlab_rails['initial_root_password'] = "{{gitlab_initial_root_password}}"
|
|
|
|
|
2023-12-28 19:44:28 +01:00
|
|
|
redis['enable'] = false
|
|
|
|
gitlab_rails['redis_host'] = 'redis'
|
|
|
|
gitlab_rails['redis_port'] = '6379'
|
2023-12-28 00:28:30 +01:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
- "{{ssh_port}}:22"
|
|
|
|
volumes:
|
|
|
|
- 'config:/etc/gitlab'
|
|
|
|
- 'logs:/var/log/gitlab'
|
|
|
|
- 'data:/var/opt/gitlab'
|
|
|
|
shm_size: '256m'
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-28 19:44:28 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
redis:
|
2023-12-28 12:33:48 +01:00
|
|
|
config:
|
|
|
|
logs:
|
|
|
|
data:
|