docker-compose.yml
version: '3'
services:
redmine:
image: redmine:4.1.1
restart: always
container_name: redmine_container
environment:
REDMINE_DB_MYSQL: mysql
REDMINE_DB_DATABASE: redmine
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: redmine
REDMINE_DB_ENCODING: utf8mb4
VIRTUAL_HOST: <Domainname, den Sie festlegen möchten>
expose:
- 3000
volumes:
- ./redmine/files:/usr/src/redmine/files
- ./redmine/log:/usr/src/redmine/log
- ./redmine/plugins:/usr/src/redmine/plugins
- ./redmine/public/themes:/usr/src/redmine/public/themes
depends_on:
- mysql
mysql:
image: mysql:5.7
container_name: mysql
restart: always
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: redmine
MYSQL_DATABASE: redmine
MYSQL_USER: redmine
MYSQL_PASSWORD: redmine
volumes:
- ./mysql-data:/var/lib/mysql
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
https-portal:
image: steveltn/https-portal:latest
ports:
- '80:80'
- '443:443'
links:
- redmine
restart: always
environment:
DOMAINS: '<Domainname, den Sie festlegen möchten> -> http://redmine_container:3000'
STAGE: 'production'
#FORCE_RENEW: 'true'
volumes:
- ./certs:/var/lib/https-portal
STAGE --production ... Holen Sie sich ein SSL-Zertifikat --local ... Richten Sie mein Zertifikat ein
FORCE_RENEW
volumes
/ var / lib / https-portal
auf das Volume, um das Zertifikat beizubehalten. / Redmine / plugins
$ RAILS_ENV=production bundle exec rake redmine:plugins:migrate
. / Redmine / plugins
$ bundle install --without development test --no-deployment
$ bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
Recommended Posts