Tag Archives: redmine

docker create redmine

mkdir /opt/mysql/data
sudo docker run –name mysql -it –rm -v /opt/mysql/data:/var/lib/mysql sameersbn/mysql:latest

150429 16:50:41 mysqld_safe Logging to syslog.
150429 16:50:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

sudo docker exec -it mysql bash
mysql -uroot -p
CREATE USER ‘redmine’@’%.%.%.%’ IDENTIFIED BY ‘password’;
CREATE DATABASE IF NOT EXISTS `redmine_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `redmine_production`.* TO ‘redmine’@’%.%.%.%’;

sudo docker run –name=redmine -it –rm –link mysql:mysql -e “DB_USER=redmine” -e “DB_PASS=password” -e “DB_NAME=redmine_production” -v /opt/redmine/data:/home/redmine/data sameersbn/redmine:latest

Generating secure token…
2015-04-29 17:14:03,461 CRIT Supervisor running as root (no user in config file)
2015-04-29 17:14:03,461 WARN Included extra file “/etc/supervisor/conf.d/unicorn.conf” during parsing
2015-04-29 17:14:03,461 WARN Included extra file “/etc/supervisor/conf.d/nginx.conf” during parsing
2015-04-29 17:14:03,461 WARN Included extra file “/etc/supervisor/conf.d/cron.conf” during parsing
2015-04-29 17:14:03,500 INFO RPC interface ‘supervisor’ initialized
2015-04-29 17:14:03,500 CRIT Server ‘unix_http_server’ running without any HTTP authentication checking
2015-04-29 17:14:03,500 INFO supervisord started with pid 1
2015-04-29 17:14:04,504 INFO spawned: ‘unicorn’ with pid 131
2015-04-29 17:14:04,506 INFO spawned: ‘cron’ with pid 132
2015-04-29 17:14:04,509 INFO spawned: ‘nginx’ with pid 133
2015-04-29 17:14:06,363 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-04-29 17:14:06,364 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-04-29 17:14:06,364 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

sudo docker inspect redmine | grep -i ip

[vit@localhost docker-redmine]$ sudo docker inspect redmine | grep -i ip
“IpcMode”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “172.17.0.19”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“LinkLocalIPv6Address”: “fe80::42:acff:fe11:13”,
“LinkLocalIPv6PrefixLen”: 64,

Now you can access redmine using IPAddress. Default user admin, password admin.