mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
HUGE REFACTORING; Implementing ldap networks, new port mappings, heal script optimizing etc.
This commit is contained in:
@@ -16,7 +16,7 @@ This Ansible role is designed for setting up and managing a GitLab server runnin
|
||||
## Role Variables
|
||||
Variables are defined in `vars/main.yml`. Key variables include:
|
||||
- `docker_compose_instance_directory`: Directory for Docker Compose instances.
|
||||
- `docker_compose_project_name`, `database_host`, `database_name`, `database_username`, `database_password`: Database configuration variables.
|
||||
- `application_id`, `database_host`, `database_name`, `database_username`, `database_password`: Database configuration variables.
|
||||
|
||||
## Handlers
|
||||
- `recreate gitlab`: Restarts GitLab using Docker Compose when changes are detected.
|
||||
|
@@ -12,7 +12,7 @@ services:
|
||||
GITLAB_OMNIBUS_CONFIG: |
|
||||
external_url 'https://{{domain}}'
|
||||
postgresql['enable'] = false
|
||||
gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}}
|
||||
gitlab_rails['gitlab_shell_ssh_port'] = {{ports.public.ssh_ports[application_id]}}
|
||||
gitlab_rails['db_adapter'] = 'postgresql'
|
||||
gitlab_rails['db_encoding'] = 'utf8'
|
||||
gitlab_rails['db_host'] = '{{database_host}}'
|
||||
@@ -30,7 +30,7 @@ services:
|
||||
gitlab_rails['redis_port'] = '6379'
|
||||
ports:
|
||||
- "127.0.0.1:{{http_port}}:80"
|
||||
- "{{ssh_port}}:22"
|
||||
- "{{ports.public.ssh_ports[application_id]}}:22"
|
||||
volumes:
|
||||
- 'config:/etc/gitlab'
|
||||
- 'logs:/var/log/gitlab'
|
||||
|
@@ -1,3 +1,3 @@
|
||||
docker_compose_project_name: "gitlab"
|
||||
database_password: "{{gitlab_database_password}}"
|
||||
database_type: "postgres"
|
||||
application_id: "gitlab"
|
||||
database_password: "{{gitlab_database_password}}"
|
||||
database_type: "postgres"
|
Reference in New Issue
Block a user