Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Last active April 6, 2018 22:30
Show Gist options
  • Save VirtuBox/c41f10b345dc73cbbb6f84e3f04a7aa2 to your computer and use it in GitHub Desktop.
Save VirtuBox/c41f10b345dc73cbbb6f84e3f04a7aa2 to your computer and use it in GitHub Desktop.
Gitlab-ce Docker Compose
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
volumes:
- /home/gitlab/postgresql:/var/lib/postgresql
gitlab:
restart: always
image: sameersbn/gitlab:10.6.3
links:
- redis:redisio
- postgresql:postgresql
ports:
- "10080:80"
- "10022:22"
- "10443:443"
environment:
- DEBUG=false
- TZ=Europe/Paris
- GITLAB_TIMEZONE=Paris
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_HOST=git.example.com
- GITLAB_PORT=443
- GITLAB_HTTPS=true
- GITLAB_SSH_PORT=10022
- GITLAB_RELATIVE_URL_ROOT=
- 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
- GITLAB_ROOT_PASSWORD=5iveL!fe
- [email protected]
- 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
volumes:
- /home/gitlab/data:/home/git/data
- /home/gitlab/logs:/var/log/gitlab
redis:
restart: always
image: sameersbn/redis:latest
volumes:
- /home/gitlab/redis:/var/lib/redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment