Last active
August 29, 2015 14:12
-
-
Save orita/6d557d9a0fcc82615f98 to your computer and use it in GitHub Desktop.
sameersbn/docker-gitlab fig
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
# mkdir -p /data/docker-gitlab | |
# cd /data/docker-gitlab | |
# wget https://gist.githubusercontent.com/orita/6d557d9a0fcc82615f98/raw/c32ec427149c81902bd100434fc1bc6be54eb34a/fig.yml | |
# # edit GITLAB_HOST | |
# mkdir -p data/certs | |
# cd data/certs | |
# openssl genrsa -out gitlab.key 2048 | |
# openssl req -new -key gitlab.key -out gitlab.csr | |
# openssl x509 -req -days 365 -in gitlab.csr -signkey gitlab.key -out gitlab.crt | |
# chmod 400 gitlab.key | |
# cd /data/docker-gitlab | |
# fig up | |
postgresql: | |
image: sameersbn/postgresql:9.1-1 | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS=secretpassword | |
- DB_NAME=gitlabhq_production | |
gitlab: | |
image: sameersbn/gitlab:7.6.2 | |
links: | |
- redis:redisio | |
- postgresql:postgresql | |
ports: | |
- "443:443" | |
- "10022:22" | |
environment: | |
- GITLAB_HTTPS=true | |
- SSL_SELF_SIGNED=true | |
- GITLAB_SSH_PORT=10022 | |
- GITLAB_HOST="yourdomainname" | |
volumes: | |
- /data/docker-gitlab/data:/home/git/data | |
redis: | |
image: sameersbn/redis:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment