Last active
August 29, 2015 20:17
-
-
Save victor-miranda-beltran/7fa2272e00c3f26ea35c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| docker run --name db \ | |
| -v /srv/mysql/conf:/etc/mysql \ | |
| -v /srv/mysql/dbs:/var/lib/mysql \ | |
| -e MYSQL_ROOT_PASSWORD=asd \ | |
| -d --publish 3306:3306 \ | |
| --restart="always" \ | |
| mysql:5.6 | |
| create database jsql; | |
| CREATE USER 'jsql'@'%' IDENTIFIED BY 'asd'; | |
| GRANT ALL PRIVILEGES ON jsql.* TO 'jsql'@'%'; | |
| create database sonar; | |
| CREATE USER 'sonar'@'%' IDENTIFIED BY 'asd'; | |
| GRANT ALL PRIVILEGES ON sonar.* TO 'sonar'@'%'; | |
| CREATE USER 'gitlab'@'%.%.%.%' IDENTIFIED BY 'password'; | |
| CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; | |
| GRANT ALL PRIVILEGES ON `gitlabhq_production`.* TO 'gitlab'@'%.%.%.%'; | |
| FLUSH PRIVILEGES; | |
| docker run --name gitlab -d \ | |
| --env 'DB_HOST=192.168.0.111' --env 'DB_NAME=gitlabhq_production' \ | |
| --env 'DB_USER=gitlab' --env 'DB_PASS=asd' \ | |
| --env 'REDIS_HOST=192.168.0.111' --env 'REDIS_PORT=6379' \ | |
| --env 'DB_TYPE=mysql' \ | |
| --env 'GITLAB_HOST=code.victormiranda.net' \ | |
| --env 'GITLAB_BACKUPS=daily' \ | |
| --env 'SMTP_USER=victormiranda@gmail.com' --env 'SMTP_PASS=asd' \ | |
| --volume /srv/gitlab/gitlab:/home/git/data \ | |
| --publish 22:22 --publish 8888:80 --publish 8443:443 \ | |
| --restart="always" \ | |
| sameersbn/gitlab:7.14.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment