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

SQL merge operation of query results of tables with different columns

To query two different tables, you need to merge ...

Summary of Linux sftp command usage

sftp is the abbreviation of Secure File Transfer ...

A brief analysis of the difference between ref and toRef in Vue3

1. ref is copied, the view will be updated If you...

Detailed description of component-based front-end development process

Background <br />Students who work on the fr...

Detailed explanation of fetch network request encapsulation example

export default ({ url, method = 'GET', da...

What are the drawbacks of deploying the database in a Docker container?

Preface Docker has been very popular in the past ...

Mysql solves the database N+1 query problem

Introduction In orm frameworks, such as hibernate...

Detailed explanation of galera-cluster deployment in cluster mode of MySQL

Table of contents 1: Introduction to galera-clust...

7 Ways to Write a Vue v-for Loop

Table of contents 1. Always use key in v-for loop...

How to monitor global variables in WeChat applet

I recently encountered a problem at work. There i...

An article to understand operators in ECMAScript

Table of contents Unary Operators Boolean Operato...