Added correct parameters

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-28 12:33:48 +01:00
parent fae89a4627
commit 1eb3630cc0
2 changed files with 23 additions and 11 deletions

View File

@ -33,3 +33,6 @@ Variables are defined in `vars/main.yml`. Key variables include:
Include this role in your Ansible playbooks and specify the necessary variables. Run the playbook to deploy and configure GitLab in a Docker environment. Include this role in your Ansible playbooks and specify the necessary variables. Run the playbook to deploy and configure GitLab in a Docker environment.
For a detailed walkthrough and explanation of this role, refer to the conversation at [ChatGPT Session Transcript](https://chat.openai.com/share/1b0147bf-d4de-4790-b8ed-c332aa4e3ce3). For a detailed walkthrough and explanation of this role, refer to the conversation at [ChatGPT Session Transcript](https://chat.openai.com/share/1b0147bf-d4de-4790-b8ed-c332aa4e3ce3).
## Further Information
- https://ralph.blog.imixs.com/2019/06/09/running-gitlab-on-docker/

View File

@ -7,16 +7,21 @@ services:
environment: environment:
GITLAB_OMNIBUS_CONFIG: | GITLAB_OMNIBUS_CONFIG: |
external_url 'https://{{domain}}' external_url 'https://{{domain}}'
postgresql['enable'] = false postgresql['enable'] = false
gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}} gitlab_rails['gitlab_shell_ssh_port'] = {{ssh_port}}
gitlab_rails['db_adapter'] = 'postgresql' gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_encoding'] = 'utf8' gitlab_rails['db_encoding'] = 'utf8'
gitlab_rails['db_host'] = '{{database_host}}' gitlab_rails['db_host'] = '{{database_host}}'
gitlab_rails['db_port'] = 5432 gitlab_rails['db_port'] = 5432
gitlab_rails['db_username'] = '{{database_username}}' gitlab_rails['db_username'] = '{{database_username}}'
gitlab_rails['db_password'] = '{{database_password}}' gitlab_rails['db_password'] = '{{database_password}}'
ports: gitlab_rails['db_database'] = "{{database_databasename}}"
- '8929:8929' nginx['listen_port'] = 80
nginx['listen_https'] = false
#redis['enable'] = false
#gitlab_rails['redis_host'] = 'redis'
#gitlab_rails['redis_port'] = '6379'
ports: ports:
- "127.0.0.1:{{http_port}}:80" - "127.0.0.1:{{http_port}}:80"
- "{{ssh_port}}:22" - "{{ssh_port}}:22"
@ -30,3 +35,7 @@ services:
volumes: volumes:
database: database:
config:
logs:
data:
# redis: