Created
October 24, 2018 12:46
-
-
Save starkers/484ce9f6160da3def968bc12abd797b9 to your computer and use it in GitHub Desktop.
production worthy gitlab, just snapshot the host daily..
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: '2' | |
services: | |
traefik: | |
image: traefik | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- ./traefik/traefik.toml:/etc/traefik/traefik.toml:ro | |
- ./traefik/acme:/etc/traefik/acme | |
ports: | |
- "80:80" | |
- "443:443" | |
- "8080:8080" | |
redis: | |
restart: always | |
image: sameersbn/redis:latest | |
command: | |
- --loglevel warning | |
volumes: | |
- /docker/gitlab/redis:/var/lib/redis:Z | |
postgresql: | |
restart: always | |
image: sameersbn/postgresql:9.6-2 | |
volumes: | |
- /docker/gitlab/postgresql:/var/lib/postgresql:Z | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS={{db_pass}} | |
- DB_NAME=gitlabhq_production | |
- DB_EXTENSION=pg_trgm | |
runner: | |
image: gitlab/gitlab-runner:latest | |
restart: always | |
depends_on: | |
- gitlab | |
volumes: | |
- /docker/runner/:/etc/gitlab-runner | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
gitlab: | |
labels: | |
traefik.port: "80" | |
traefik.enable: "true" | |
traefik.backend: "gitlab" | |
traefik.frontend.rule: "Host:git.example.com" | |
traefik.frontend.headers.customRequestHeaders: "X-Forwarded-Ssl:on" | |
restart: always | |
image: sameersbn/gitlab:10.8.3-1 | |
depends_on: | |
- redis | |
- postgresql | |
ports: | |
- "222:22" | |
volumes: | |
- /docker/gitlab/gitlab:/home/git/data:Z | |
environment: | |
- DEBUG=false | |
- DB_ADAPTER=postgresql | |
- DB_HOST=postgresql | |
- DB_PORT=5432 | |
- DB_USER=gitlab | |
- DB_PASS={{db_pass}} | |
- DB_NAME=gitlabhq_production | |
- REDIS_HOST=redis | |
- REDIS_PORT=6379 | |
- TZ=Europe/London | |
- GITLAB_TIMEZONE=London | |
- GITLAB_HTTPS=true | |
- SSL_SELF_SIGNED=false | |
- GITLAB_HOST=git.example.com | |
- GITLAB_PORT=443 | |
- GITLAB_SSH_PORT=222 | |
- GITLAB_RELATIVE_URL_ROOT= | |
- GITLAB_SECRETS_DB_KEY_BASE={{key_base}} | |
- GITLAB_SECRETS_SECRET_KEY_BASE={{secret_key}} | |
- GITLAB_SECRETS_OTP_KEY_BASE={{otp_key}} | |
- GITLAB_ROOT_PASSWORD={{default_passwd}} | |
- GITLAB_ROOT_EMAIL= | |
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true | |
- GITLAB_NOTIFY_PUSHER=false | |
- [email protected] | |
- [email protected] | |
- [email protected] | |
- 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 | |
- [email protected] | |
- SMTP_PASS=password | |
- SMTP_STARTTLS=true | |
- SMTP_AUTHENTICATION=login | |
- IMAP_ENABLED=false | |
- IMAP_HOST=imap.gmail.com | |
- IMAP_PORT=993 | |
- [email protected] | |
- IMAP_PASS=password | |
- IMAP_SSL=true | |
- IMAP_STARTTLS=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment