File Name: docker-compose.yml
version: '3'
services:
redmine:
image: redmine
container_name: redmine
restart: always
ports:
- 3000:3000
environment:
- REDMINE_DB_MYSQL=redmine-db
- REDMINE_DB_PASSWORD=redmine
volumes:
- files:/usr/src/redmine/files
- plugin:/usr/src/redmine/plugins
- theme:/usr/src/redmine/public/themes
depends_on:
- redmine-db
redmine-db:
image: mysql:5.7
container_name: redmine-db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=redmine
- MYSQL_DATABASE=redmine
volumes:
- db:/var/lib/mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
files:
db:
plugin:
theme: