Skip to content

Instantly share code, notes, and snippets.

@yknext
Created April 11, 2018 15:33
Show Gist options
  • Select an option

  • Save yknext/70ee728062cf48b00084c4f6c94347ed to your computer and use it in GitHub Desktop.

Select an option

Save yknext/70ee728062cf48b00084c4f6c94347ed to your computer and use it in GitHub Desktop.
docker-compose gitlab
gitlab:
restart: always
image: sameersbn/gitlab:10.4.2-1
ports:
- "10022:22"
- "10080:80"
- "10443:443"
volumes:
- /etc/localtime:/etc/localtime:ro
- gitlab_data:/home/git/data
- gitlab_log:/var/log/gitlab
environment:
GITLAB_TIMEZONE: Asia/Shanghai
GOOGLE_ANALYTICS_ID: UA-xxxxxxxxxx
GITLAB_SSH_PORT: 10022
GITLAB_HTTPS: "true"
SSL_SELF_SIGNED: "true"
NGINX_HSTS_MAXAGE: 2592000
GITLAB_HOST: git.youdomain.com
GITLAB_SECRETS_OTP_KEY_BASE: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GITLAB_SECRETS_SECRET_KEY_BASE: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
GITLAB_SECRETS_DB_KEY_BASE: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
links:
- gitlab_mysql:mysql
- gitlab_redis:redisio
gitlab_mysql:
restart: "on-failure"
image: sameersbn/mysql:latest
volumes:
- gitlab_mysql:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
DB_NAME: gitlabhq_production
DB_USER: gitlab
DB_PASS: this_is_a_password_you_need_change_it
gitlab_redis:
restart: "on-failure"
image: sameersbn/redis:latest
volumes:
- /etc/localtime:/etc/localtime:ro
- gitlab_redis:/var/lib/redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment