Docker installation steps for Redmine

Docker installation steps for Redmine

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:
  • Use of Docker redmine project management tool

<<:  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

Recommend

Analyze how a SQL query statement is executed in MySQL

Table of contents 1. Overview of MySQL Logical Ar...

Solution to the Multiple primary key defined error in MySQL

There are two ways to create a primary key: creat...

Ten useful and simple MySQL functions

function 0. Display current time Command: select ...

Vue implements the browser-side code scanning function

background Not long ago, I made a function about ...

Analysis of SQL integrity constraint statements in database

Integrity constraints Integrity constraints are f...

Detailed explanation of sql_mode mode example in MySQL

This article describes the sql_mode mode in MySQL...

React sample code to implement login form

As a Vue user, it's time to expand React. Fro...

Two ways to exit bash in docker container under Linux

If you want to exit bash, there are two options: ...

HTML table tag tutorial (34): row span attribute ROWSPAN

In a complex table structure, some cells span mul...

Vue implements tree table

This article example shares the specific code of ...

Basic syntax of MySQL index

An index is a sorted data structure! The fields t...

Summary of event handling in Vue.js front-end framework

1. v-on event monitoring To listen to DOM events,...

Vue implements tab label (label exceeds automatic scrolling)

When the created tab label exceeds the visible ar...