mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-12-08 17:36:24 +00:00
96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
services:
|
|
redis:
|
|
restart: always
|
|
image: redis:7
|
|
command:
|
|
- --loglevel warning
|
|
volumes:
|
|
- redis:/var/lib/redis:Z
|
|
|
|
postgresql:
|
|
restart: always
|
|
image: kkimurak/sameersbn-postgresql:16
|
|
volumes:
|
|
- postgresql:/var/lib/postgresql:Z
|
|
environment:
|
|
- DB_USER=gitlab
|
|
- DB_PASS=password
|
|
- DB_NAME=gitlabhq_production
|
|
- DB_EXTENSION=pg_trgm,btree_gist
|
|
|
|
gitlab:
|
|
restart: always
|
|
image: sameersbn/gitlab:18.6.1
|
|
volumes:
|
|
- gitlab-data:/home/git/data:Z
|
|
- gitlab-logs:/var/log/gitlab
|
|
- ./certs:/certs
|
|
depends_on:
|
|
- redis
|
|
- postgresql
|
|
ports:
|
|
- "80:80"
|
|
- "10022:22"
|
|
external_links:
|
|
- "registry:registry.example.com"
|
|
environment:
|
|
- DEBUG=false
|
|
|
|
- DB_ADAPTER=postgresql
|
|
- DB_HOST=postgresql
|
|
- DB_PORT=5432
|
|
- DB_USER=gitlab
|
|
- DB_PASS=password
|
|
- DB_NAME=gitlabhq_production
|
|
|
|
- REDIS_HOST=redis
|
|
- REDIS_PORT=6379
|
|
|
|
- GITLAB_HTTPS=false
|
|
- SSL_SELF_SIGNED=false
|
|
|
|
- GITLAB_HOST=gitlab.example.com
|
|
- GITLAB_PORT=80
|
|
- GITLAB_SSH_PORT=10022
|
|
- GITLAB_RELATIVE_URL_ROOT=
|
|
- GITLAB_SECRETS_DB_KEY_BASE=secret
|
|
- GITLAB_SECRETS_SECRET_KEY_BASE=secret
|
|
- GITLAB_SECRETS_OTP_KEY_BASE=secret
|
|
- GITLAB_SECRETS_ENCRYPTED_SETTINGS_KEY_BASE=secret
|
|
|
|
- GITLAB_REGISTRY_ENABLED=true
|
|
- GITLAB_REGISTRY_HOST=registry.example.com
|
|
- GITLAB_REGISTRY_PORT=5000
|
|
- GITLAB_REGISTRY_API_URL=https://registry.example.com:5000
|
|
- GITLAB_REGISTRY_CERT_PATH=/certs/registry-auth.crt
|
|
- GITLAB_REGISTRY_KEY_PATH=/certs/registry-auth.key
|
|
|
|
registry:
|
|
restart: always
|
|
image: registry:2.4.1
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- registry-data:/var/lib/registry
|
|
- ./certs:/certs
|
|
external_links:
|
|
- "gitlab:gitlab.example.com"
|
|
environment:
|
|
- REGISTRY_LOG_LEVEL=info
|
|
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry
|
|
- REGISTRY_AUTH_TOKEN_REALM=http://gitlab.example.com/jwt/auth
|
|
- REGISTRY_AUTH_TOKEN_SERVICE=container_registry
|
|
- REGISTRY_AUTH_TOKEN_ISSUER=gitlab-issuer
|
|
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certs/registry-auth.crt
|
|
- REGISTRY_STORAGE_DELETE_ENABLED=true
|
|
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry-auth.crt
|
|
- REGISTRY_HTTP_TLS_KEY=/certs/registry-auth.key
|
|
- REGISTRY_HTTP_SECRET=secret
|
|
|
|
volumes:
|
|
gitlab-data:
|
|
gitlab-logs:
|
|
postgresql:
|
|
redis:
|
|
registry-data:
|