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
To query two different tables, you need to merge ...
Demand scenario: The boss asked me to use the cra...
sftp is the abbreviation of Secure File Transfer ...
MySQL 8.0 compressed package installation method,...
1. Call the parent component method directly thro...
1. ref is copied, the view will be updated If you...
Background <br />Students who work on the fr...
export default ({ url, method = 'GET', da...
Preface Docker has been very popular in the past ...
Introduction In orm frameworks, such as hibernate...
Table of contents 1: Introduction to galera-clust...
This article uses examples to illustrate the opti...
Table of contents 1. Always use key in v-for loop...
I recently encountered a problem at work. There i...
Table of contents Unary Operators Boolean Operato...