Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
199 lines (162 sloc) 5.38 KB
version: '2'
services:
redis:
restart: always
image: sameersbn/redis:4.0.9-1
command:
- --loglevel warning
volumes:
- /srv/docker/gitlab/redis:/var/lib/redis:Z
postgresql:
restart: always
image: sameersbn/postgresql:10
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
environment:
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASSWORD}
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
registry:
restart: always
image: registry:2.4.1
ports:
- "${REGISTRY_PORT}:5000"
volumes:
- /srv/docker/gitlab/gitlab/shared/registry:/registry
- /srv/docker/gitlab/certs:/certs
environment:
- REGISTRY_LOG_LEVEL=info
- REGISTRY_AUTH_TOKEN_REALM=https://${GITLAB_HOST}:${HTTPS_PORT}/jwt/auth
- REGISTRY_AUTH_TOKEN_SERVICE=container_registry
- REGISTRY_AUTH_TOKEN_ISSUER=gitlab-issuer
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certs/auth.crt
- REGISTRY_HTTP_SECRET=${HTTP_SECRET}
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/auth.crt
- REGISTRY_HTTP_TLS_KEY=/certs/auth.key
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/registry
- REGISTRY_STORAGE_DELETE_ENABLED=true
gitlab:
restart: always
image: sameersbn/gitlab:11.7.3
depends_on:
- redis
- postgresql
ports:
- "80:80"
- "${HTTPS_PORT}:443"
- "${SSH_PORT}:22"
volumes:
- /srv/docker/gitlab/gitlab:/home/git/data:Z
- /srv/docker/gitlab/logs:/var/log/gitlab
- /srv/docker/gitlab/certs:/certs
- /srv/docker/gitlab/certs/ca.crt:/etc/ssl/certs/ca.crt
- ~/gitlab/assets/runtime/config/nginx/gitlab-registry:/etc/docker-gitlab/runtime/config/nginx/gitlab-registry
environment:
- GITLAB_REGISTRY_ENABLED=true
- GITLAB_REGISTRY_HOST=${REGISTRY_HOST}
- GITLAB_REGISTRY_PORT=${REGISTRY_PORT}
- GITLAB_REGISTRY_API_URL=https://${REGISTRY_HOST}:${REGISTRY_PORT}
- GITLAB_REGISTRY_ISSUER=gitlab-issuer
- GITLAB_HTTPS=true
- SSL_SELF_SIGNED=true
- SSL_KEY_PATH=/certs/auth.key
- SSL_CERTIFICATE_PATH=/certs/auth.crt
- SSL_DHPARAM_PATH=/certs/dhparam.pem
- GITLAB_REGISTRY_CERT_PATH=/certs/auth.crt
- GITLAB_REGISTRY_KEY_PATH=/certs/auth.key
- SSL_REGISTRY_KEY_PATH=/certs/auth.key
- SSL_REGISTRY_CERT_PATH=/certs/auth.crt
- DEBUG=false
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASSWORD}
- DB_NAME=gitlabhq_production
- REDIS_HOST=redis
- REDIS_PORT=6379
- TZ=UTC
- GITLAB_TIMEZONE=UTC
- GITLAB_HOST=${GITLAB_HOST}
- GITLAB_PORT=${HTTPS_PORT}
- GITLAB_SSH_PORT=${SSH_PORT}
- GITLAB_RELATIVE_URL_ROOT=
- GITLAB_SECRETS_DB_KEY_BASE=${GITLAB_SECRETS_BASE}
- GITLAB_SECRETS_SECRET_KEY_BASE=${GITLAB_SECRETS_BASE}
- GITLAB_SECRETS_OTP_KEY_BASE=${GITLAB_SECRETS_BASE}
- GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN=${RUNNER_TOKEN}
- GITLAB_ROOT_PASSWORD=${ROOT_PASSWORD}
- GITLAB_ROOT_EMAIL=${USER_EMAIL}
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_EMAIL=${USER_EMAIL}
- GITLAB_EMAIL_REPLY_TO=${USER_EMAIL}
- GITLAB_INCOMING_EMAIL_ADDRESS=${USER_EMAIL}
- GITLAB_BACKUP_SCHEDULE=daily
- GITLAB_BACKUP_TIME=01:00
- SMTP_ENABLED=false
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_USER=mailer@example.com
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_USER=mailer@example.com
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_STARTTLS=false
- OAUTH_ENABLED=false
- OAUTH_AUTO_SIGN_IN_WITH_PROVIDER=
- OAUTH_ALLOW_SSO=
- OAUTH_BLOCK_AUTO_CREATED_USERS=true
- OAUTH_AUTO_LINK_LDAP_USER=false
- OAUTH_AUTO_LINK_SAML_USER=false
- OAUTH_EXTERNAL_PROVIDERS=
- OAUTH_CAS3_LABEL=cas3
- OAUTH_CAS3_SERVER=
- OAUTH_CAS3_DISABLE_SSL_VERIFICATION=false
- OAUTH_CAS3_LOGIN_URL=/cas/login
- OAUTH_CAS3_VALIDATE_URL=/cas/p3/serviceValidate
- OAUTH_CAS3_LOGOUT_URL=/cas/logout
- OAUTH_GOOGLE_API_KEY=
- OAUTH_GOOGLE_APP_SECRET=
- OAUTH_GOOGLE_RESTRICT_DOMAIN=
- OAUTH_FACEBOOK_API_KEY=
- OAUTH_FACEBOOK_APP_SECRET=
- OAUTH_TWITTER_API_KEY=
- OAUTH_TWITTER_APP_SECRET=
- OAUTH_GITHUB_API_KEY=
- OAUTH_GITHUB_APP_SECRET=
- OAUTH_GITHUB_URL=
- OAUTH_GITHUB_VERIFY_SSL=
- OAUTH_GITLAB_API_KEY=
- OAUTH_GITLAB_APP_SECRET=
- OAUTH_BITBUCKET_API_KEY=
- OAUTH_BITBUCKET_APP_SECRET=
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
- OAUTH_SAML_IDP_CERT_FINGERPRINT=
- OAUTH_SAML_IDP_SSO_TARGET_URL=
- OAUTH_SAML_ISSUER=
- OAUTH_SAML_LABEL="Our SAML Provider"
- OAUTH_SAML_NAME_IDENTIFIER_FORMAT=urn:oasis:names:tc:SAML:2.0:nameid-format:transient
- OAUTH_SAML_GROUPS_ATTRIBUTE=
- OAUTH_SAML_EXTERNAL_GROUPS=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_EMAIL=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_NAME=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_USERNAME=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_FIRST_NAME=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_LAST_NAME=
- OAUTH_CROWD_SERVER_URL=
- OAUTH_CROWD_APP_NAME=
- OAUTH_CROWD_APP_PASSWORD=
- OAUTH_AUTH0_CLIENT_ID=
- OAUTH_AUTH0_CLIENT_SECRET=
- OAUTH_AUTH0_DOMAIN=
- OAUTH_AZURE_API_KEY=
- OAUTH_AZURE_API_SECRET=
- OAUTH_AZURE_TENANT_ID=