Download the image (optional step, if omitted, it will be automatically installed in steps 3 and 4) docker pull docker.io/sameersbn/redmine docker pull docker.io/sameersbn/postgresql Start 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 Start 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 Content Extension Install Redmine using Docker Deploy the database container Redmine relies on a database. We also use containers to deploy related databases. Here we can use PostgreSQL and MySQL databases, respectively, as follows Command installation: PostgreSQL docker run -d --name some-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=redmine postgres MySQL docker run -d --name some-mysql -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_DATABASE=redmine mysql The name and password in the command can be specified by yourself, which are the container name and database password respectively. Deploy Redmine The following command connects to the PostgresSQL database docker run -d --name redmine -e REDMINE_DB_PASSWORD=secret -p 3000:3000 -v /my/own/datadir:/usr/src/redmine/files --link some-postgres:postgres redmine At this point, you can access the redmine service on port 3000 of the local IP address. You may also be interested in:
|
<<: MySQL 5.6 decompressed version service cannot be started due to system error 1067
>>: Vue uses the method in the reference library with source code
Table of contents 1. Overview of MySQL Logical Ar...
There are two ways to create a primary key: creat...
function 0. Display current time Command: select ...
background Not long ago, I made a function about ...
Integrity constraints Integrity constraints are f...
The code looks like this: .process{ border:1px so...
This article describes the sql_mode mode in MySQL...
As a Vue user, it's time to expand React. Fro...
If you want to exit bash, there are two options: ...
In a complex table structure, some cells span mul...
This article example shares the specific code of ...
An index is a sorted data structure! The fields t...
1. v-on event monitoring To listen to DOM events,...
When the created tab label exceeds the visible ar...
Detailed explanation of the order of Mysql query ...