Last active
November 8, 2022 01:47
-
-
Save alejandrobernardis/985e0266899af78fa02f8dace9e37dd7 to your computer and use it in GitHub Desktop.
Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
x-restart: &x-restart always | |
x-env-postgres: &x-env-postgres ${PWD}/postgres.env | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:15.5.2-ce.0 | |
restart: *x-restart | |
container_name: gitlab | |
hostname: 'gitcode.domain.ad' | |
ports: | |
- '8022:22' | |
- '8080:80' | |
- '8443:443' | |
- '8500:5000' | |
volumes: | |
- '${PWD}/gitlab.rb:/etc/gitlab/gitlab.rb:delegated' | |
- '${PWD}/gitlab/config:/etc/gitlab:delegated' | |
- '${PWD}/gitlab/logs:/var/log/gitlab:delegated' | |
- '${PWD}/gitlab/data:/var/opt/gitlab:delegated' | |
shm_size: '256m' | |
depends_on: | |
- gitlab-postgres | |
- gitlab-redis | |
gitlab-postgres: | |
image: postgres:12.10 | |
restart: *x-restart | |
container_name: gitlab_postgres | |
env_file: *x-env-postgres | |
volumes: | |
- '${PWD}/postgres/data:/var/lib/postgresql/data:delegated' | |
gitlab-redis: | |
image: redis:6.0 | |
restart: *x-restart | |
container_name: gitlab_redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL | |
external_url 'https://gitcode.domain.ad'; | |
# SSH | |
gitlab_rails['gitlab_ssh_host'] = 'gitcode.domain.ad' | |
gitlab_rails['gitlab_ssh_user'] = 'git' | |
#gitlab_rails['smtp_enable'] = true | |
#gitlab_rails['smtp_address'] = "domain.ad" | |
#gitlab_rails['smtp_port'] = 25 | |
#gitlab_rails['smtp_user_name'] = "" | |
#gitlab_rails['smtp_password'] = "" | |
#gitlab_rails['smtp_domain'] = "domain.ad" | |
#gitlab_rails['smtp_authentication'] = "login" | |
#gitlab_rails['smtp_enable_starttls_auto'] = true | |
#gitlab_rails['smtp_tls'] = false | |
#gitlab_rails['smtp_pool'] = false | |
#gitlab_rails['gitlab_email_enabled'] = true | |
#gitlab_rails['gitlab_email_from'] = '[email protected]' | |
#gitlab_rails['gitlab_email_display_name'] = 'SA Git Code' | |
#gitlab_rails['gitlab_email_reply_to'] = '[email protected]' | |
# Database | |
postgresql['enable'] = false | |
gitlab_rails['db_adapter'] = "postgresql" | |
gitlab_rails['db_encoding'] = "unicode" | |
gitlab_rails['db_host'] = "gitlab-postgres" | |
gitlab_rails['db_port'] = 5432 | |
gitlab_rails['db_database'] = "gitcode" | |
gitlab_rails['db_username'] = "frank" | |
gitlab_rails['db_password'] = "frank" | |
# Cache | |
redis['enable'] = false | |
gitlab_rails['redis_host'] = "gitlab-redis" | |
gitlab_rails['redis_port'] = 6379 | |
# Registry | |
registry_external_url 'https://gitcode.domain.ad' | |
gitlab_rails['registry_enabled'] = true | |
gitlab_rails['registry_host'] = "gitcode.domain.ad" | |
gitlab_rails['registry_port'] = "5000" | |
# Nginx | |
#nginx['ssl_certificate'] = "/certs/#{node['fqdn']}.crt" | |
#nginx['ssl_certificate_key'] = "/certs/#{node['fqdn']}.key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSTGRES_DB=gitcode | |
POSTGRES_USER=frank | |
POSTGRES_PASSWORD=frank |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment