docker安装redmine
-
下载镜像 (可选步骤, 略过时会在第3,4步中自动安装)
docker pull docker.io/sameersbn/redmine
docker pull docker.io/sameersbn/postgresql -
启动SQL
docker run --name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='DB_USER=redmine' --env='DB_PASS=password' --restart=always --volume=/srv/docker/redmine/postgresql:/var/lib/postgresql sameersbn/postgresql -
启动Redmine
docker run --name=redmine -d --link=postgresql-redmine:postgresql --publish=10083:80 --env='REDMINE_PORT=10083' --restart=always --volume=/srv/docker/redmine/redmine:/home/redmine/data sameersbn/redmine