redmine/
├ data/ #Mount location
| └ db
| └ plugins
| └ themes
└ docker-compose.yml
** 1. Create docker-compose.yml
. ** **
version: "3"
services:
redmine:
container_name: redmine
image: redmine
restart: always
ports:
- 8081:3000
environment:
REDMINE_DB_MYSQL: redmine-db
REDMINE_DB_PASSWORD: redminepass
volumes:
- ./data/plugins:/usr/src/redmine/plugins
- ./data/themes:/usr/src/redmine/public/themes
redmine-db:
image: mysql:5.7
container_name: redmine-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: redminepass
MYSQL_DATABASE: redmine
volumes:
- ./data/db:/var/lib/mysql
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
Set the mount location and port appropriately according to your environment.
** 2. Start the container. ** **
Move to the above redmine
folder and execute the following docker-compose command.
docker-compose up -d
** 3. Access http: // localhost: 8081
from your browser. ** **
Recommended Posts