k8s 部署 Redmine
背景简介
由于想要系统化的学习和使用项目管理相关知识,因此安装Redmine项目管理程序进行练习,本次笔记采用Kubernetes 部署 Redmine 项目管理系统。
环境配置
- 系统:Debian 6.1.66-1 (2023-12-09) x86_64 GNU/Linux
- kubernetes:v1.29.3
- containerd: v1.7.14
详细步骤
部署 PostgreSQL 数据库
配置数据持久化
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# nano deploy_redmine_db_storage_pvc.yaml
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# cat deploy_redmine_db_storage_pvc.yaml
---
# pv
apiVersion: v1
kind: PersistentVolume
metadata:
name: redmine-db-storage-pv
spec:
capacity:
storage: 1Ti
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /vm-server/prod/redmine/data/postgresql/var/lib/postgresql
---
# pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redmine-db-storage-pvc
namespace: redmine
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Ti
配置数据库部署脚本
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# nano deploy_redmine_db.yaml
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# cat deploy_redmine_db.yaml
---
# env config
apiVersion: v1
kind: ConfigMap
metadata:
name: redmine-db-postgres-env
namespace: redmine
data:
DB_USER: "redmine"
DB_PASS: "wBu1Waaa"
DB_NAME: "redmine"
---
# deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: redmine-db-postgres
namespace: redmine
spec:
selector:
matchLabels:
app: redmine-db-postgres
template:
metadata:
labels:
app: redmine-db-postgres
spec:
containers:
- name: redmine-db-postgres
image: sameersbn/postgresql:14-20230628
envFrom:
- configMapRef:
name: redmine-db-postgres-env
volumeMounts:
- name: redmine-db-storage
mountPath: /var/lib/postgresql
ports:
- containerPort: 5432
readinessProbe:
exec:
command:
- psql
- -U
- postgres
initialDelaySeconds: 10
periodSeconds: 3
timeoutSeconds: 3
volumes:
- name: redmine-db-storage
persistentVolumeClaim:
claimName: redmine-db-storage-pvc
---
# svc
apiVersion: v1
kind: Service
metadata:
name: redmine-db-postgres-svc
namespace: redmine
spec:
selector:
app: redmine-db-postgres
type: NodePort
ports:
- protocol: TCP
port: 5432
targetPort: 5432
nodePort: 30023
部署PV,PVC
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl apply -f deploy_redmine_db_storage_pvc.yaml
persistentvolume/redmine-db-storage-pv created
persistentvolumeclaim/redmine-db-storage-pvc created
部署数据库
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl apply -f deploy_redmine_db.yaml
configmap/redmine-db-postgres-env created
deployment.apps/redmine-db-postgres created
service/redmine-db-postgres-svc created
查看状态
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl get pod,pvc,svc -n redmine
NAME READY STATUS RESTARTS AGE
pod/redmine-db-postgres-64779d859c-ltq87 0/1 ContainerCreating 0 2m43s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
persistentvolumeclaim/redmine-db-storage-pvc Bound redmine-db-storage-pv 1Ti RWO <unset> 47s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/redmine-db-postgres-svc NodePort 10.102.136.2 <none> 5432:30023/TCP 6m5s
查看容器log
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl logs -f redmine-db-postgres-64779d859c-ltq87 -n redmine
Initializing datadir...
Initializing certdir...
Initializing logdir...
Initializing rundir...
Setting resolv.conf ACLs...
Initializing database...
Configuring hot standby...
‣ Setting postgresql.conf parameter: wal_level = 'hot_standby'
‣ Setting postgresql.conf parameter: max_wal_senders = '16'
‣ Setting postgresql.conf parameter: checkpoint_segments = '8'
‣ Setting postgresql.conf parameter: wal_keep_segments = '32'
‣ Setting postgresql.conf parameter: hot_standby = 'on'
‣ Setting postgresql.conf parameter: data_directory = '/var/lib/postgresql/14/main'
‣ Setting postgresql.conf parameter: log_directory = '/var/log/postgresql'
‣ Setting postgresql.conf parameter: log_filename = 'postgresql-14-main.log'
‣ Setting postgresql.conf parameter: ssl = 'off'
Creating database user: redmine_admin
Creating database: redmine_production...
‣ Granting access to redmine_admin user...
Starting PostgreSQL 14...
2024-04-25 09:18:23.604 UTC [1] LOG: starting PostgreSQL 14.8 (Ubuntu 14.8-1.pgdg22.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit
2024-04-25 09:18:23.604 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-04-25 09:18:23.605 UTC [1] LOG: listening on IPv6 address "::", port 5432
2024-04-25 09:18:23.736 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-04-25 09:18:23.862 UTC [475] LOG: database system was shut down at 2024-04-25 09:18:22 UTC
2024-04-25 09:18:24.077 UTC [1] LOG: database system is ready to accept connections
部署 Redmine
配置 redmine data 数据持久化
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# cat deploy_redmine_data_pvc.yaml
---
# pv
apiVersion: v1
kind: PersistentVolume
metadata:
name: redmine-data-pv
spec:
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /vm-server/prod/redmine/data/redmine/home/redmine/data
---
# pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redmine-data-pvc
namespace: redmine
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
配置 redmine log 数据持久化
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# cat deploy_redmine_log_pvc.yaml
---
# pv
apiVersion: v1
kind: PersistentVolume
metadata:
name: redmine-log-pv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /vm-server/prod/redmine/data/redmine/var/log/redmine
---
# pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redmine-log-pvc
namespace: redmine
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
配置 redmine 部署文件
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# cat deploy_redmine.yaml
---
# config map
apiVersion: v1
kind: ConfigMap
metadata:
name: redmine-env
namespace: redmine
data:
TZ: "Asia/Shanghai"
DB_ADAPTER: "postgresql"
DB_HOST: "redmine-db-postgres-svc"
DB_PORT: "5432"
DB_USER: "redmine"
DB_PASS: "wBu1Waaa"
DB_NAME: "redmine"
DB_SSL_MODE: "prefer"
REDMINE_PORT: "30024"
REDMINE_HTTPS: "false"
REDMINE_RELATIVE_URL_ROOT: ""
REDMINE_SECRET_TOKEN: ""
REDMINE_SUDO_MODE_ENABLED: "false"
REDMINE_SUDO_MODE_TIMEOUT: "15"
REDMINE_CONCURRENT_UPLOADS: "2"
SMTP_ENABLED: "false"
SMTP_METHOD: "smtp"
SMTP_DOMAIN: "www.example.com"
SMTP_HOST: "smtp.gmail.com"
SMTP_PORT: "587"
SMTP_USER: "mailer@example.com"
SMTP_PASS: "password"
SMTP_STARTTLS: "true"
SMTP_AUTHENTICATION: ":login"
IMAP_ENABLED: "false"
IMAP_HOST: "imap.gmail.com"
IMAP_PORT: "993"
IMAP_USER: "mailer@example.com"
IMAP_PASS: "password"
IMAP_SSL: "true"
IMAP_INTERVAL: "30"
---
# deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: redmine-web
namespace: redmine
spec:
replicas: 1
selector:
matchLabels:
app: redmine-web
template:
metadata:
labels:
app: redmine-web
spec:
containers:
- name: redmine-web
image: sameersbn/redmine:5.1.2-1
envFrom:
- configMapRef:
name: redmine-env
ports:
- containerPort: 80
volumeMounts:
- name: redmine-data
mountPath: /home/redmine/data
- name: redmine-log
mountPath: /var/log/redmine
volumes:
- name: redmine-data
persistentVolumeClaim:
claimName: redmine-data-pvc
- name: redmine-log
persistentVolumeClaim:
claimName: redmine-log-pvc
---
# svc
apiVersion: v1
kind: Service
metadata:
name: redmine-web-svc
namespace: redmine
spec:
selector:
app: redmine-web
type: NodePort
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 30024
创建 redmine data 持久化
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl apply -f deploy_redmine_data_pvc.yaml
persistentvolume/redmine-data-pv created
persistentvolumeclaim/redmine-data-pvc created
创建 redmine log 持久化
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl apply -f deploy_redmine_log_pvc.yaml
persistentvolume/redmine-log-pv created
persistentvolumeclaim/redmine-log-pvc created
创建 redmine 服务
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl apply -f deploy_redmine.yaml
configmap/redmine-env created
deployment.apps/redmine-web created
service/redmine-web-svc created
安装成功Log
root@k8s-master:/home/myserver# kubectl logs -f redmine-web-5658cdb456-jk9h7 -n redmine
Initializing logdir...
Initializing datadir...
Symlinking dotfiles...
Installing configuration templates...
Configuring redmine...
Configuring redmine::database
Configuring redmine::logger...
Configuring redmine::unicorn...
Configuring redmine::secret_token...
Configuring redmine::max_concurrent_ajax_uploads...
Configuring redmine::sudo_mode...
Configuring redmine::autologin_cookie...
Configuring redmine::backups...
Configuring redmine::rmagic::font...
Configuring redmine::avatar::url...
Configuring nginx...
Configuring nginx::redmine...
New image version. Clearing cache
Migrating database. Please be patient, this could take a while...
Database 'redmine_production' already exists
Installing plugins...
Installing gems required by plugins...
You are replacing the current local value of without, which is currently "development:test"
Migrating plugins. Please be patient, this could take a while...
Installing themes...
2024-08-30 17:35:49,739 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
2024-08-30 17:35:49,739 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2024-08-30 17:35:49,739 INFO Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
2024-08-30 17:35:49,739 INFO Set uid to user 0 succeeded
2024-08-30 17:35:49,743 INFO RPC interface 'supervisor' initialized
2024-08-30 17:35:49,743 INFO supervisord started with pid 1
2024-08-30 17:35:50,843 INFO spawned: 'unicorn' with pid 323
2024-08-30 17:35:50,883 INFO spawned: 'cron' with pid 324
2024-08-30 17:35:50,917 INFO spawned: 'nginx' with pid 325
2024-08-30 17:35:52,727 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-08-30 17:35:52,727 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-08-30 17:35:52,727 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
查看完整服务状态
root@k8s-master:/vm-server/prod/redmine/k8s_deploy# kubectl get ConfigMap,pod,pv,pvc,svc -n redmine
NAME DATA AGE
configmap/redmine-db-postgres-env 3 2d22h
configmap/redmine-env 32 53m
NAME READY STATUS RESTARTS AGE
pod/redmine-db-postgres-5fd466659b-pg5xz 1/1 Running 0 2d22h
pod/redmine-web-5658cdb456-pjwl2 1/1 Running 0 53m
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE
persistentvolume/redmine-data-pv 100Gi RWO Retain Bound redmine/redmine-data-pvc <unset> 2d22h
persistentvolume/redmine-db-storage-pv 1Ti RWO Retain Bound redmine/redmine-db-storage-pvc <unset> 129d
persistentvolume/redmine-log-pv 10Gi RWO Retain Bound redmine/redmine-log-pvc <unset> 2d22h
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
persistentvolumeclaim/redmine-data-pvc Bound redmine-data-pv 100Gi RWO <unset> 2d22h
persistentvolumeclaim/redmine-db-storage-pvc Bound redmine-db-storage-pv 1Ti RWO <unset> 129d
persistentvolumeclaim/redmine-log-pvc Bound redmine-log-pv 10Gi RWO <unset> 2d22h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/redmine-db-postgres-svc NodePort 10.105.84.38 <none> 5432:30023/TCP 2d22h
service/redmine-web-svc NodePort 10.96.109.29 <none> 80:30024/TCP 53m
登录 Redmine
在浏览器中输入IP和端口号访问Redmine主页。
例如:192.168.122.108:30024
使用帐号:admin,密码:admin, 登陆系统即可。
附录
环境配置选项
Below is the complete list of parameters that can be set using environment variables.
REDMINE_HTTPS: Enable HTTPS (SSL/TLS) port on server. Defaults to false
REDMINE_PORT: The port of the Redmine server. Defaults to 80 for plain http and 443 when https is enabled.
REDMINE_RELATIVE_URL_ROOT: The relative url of the Redmine server, e.g. /redmine. No default.
REDMINE_ATTACHMENTS_DIR: The attachments directory. Defaults to /home/redmine/data/files
REDMINE_SECRET_TOKEN: Secret key for verifying cookie session data integrity. Defaults to a random alphanumeric string.
REDMINE_MINIMAGICK_FONT_PATH: The minimagick_font_path for the png export function of GANTT to work. Defaults to /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf.
REDMINE_CONCURRENT_UPLOADS: Maximum number of simultaneous AJAX uploads. Defaults to 2.
REDMINE_SUDO_MODE_ENABLED: Requires users to re-enter their password for sensitive actions. Defaults to false.
REDMINE_SUDO_MODE_TIMEOUT: Sudo mode timeout. Defaults to 15 minutes.
REDMINE_FETCH_COMMITS: Setup cron job to fetch commits. Possible values disable, hourly, daily or monthly. Disabled by default.
REDMINE_AUTOLOGIN_COOKIE_NAME: The name of autologin-cookie. Defaults to autologin.
REDMINE_AUTOLOGIN_COOKIE_PATH: The path of autologin-cookie. Defaults to /.
REDMINE_AUTOLOGIN_COOKIE_SECURE: Set autologin-cookie to secure. Defaults to true when REDMINE_HTTPS is true, else defaults to false.
REDMINE_BACKUPS_DIR: The backup folder in the container. Defaults to /home/redmine/data/backups
REDMINE_BACKUP_SCHEDULE: Setup cron job to schedule automatic backups. Possible values disable, daily, weekly or monthly. Disabled by default
REDMINE_BACKUP_EXPIRY: Configure how long (in seconds) to keep backups before they are deleted. By default when automated backups are disabled backups are kept forever (0 seconds), else the backups expire in 7 days (604800 seconds).
REDMINE_BACKUP_TIME: Set a time for the automatic backups in HH:MM format. Defaults to 04:00.
REDMINE_AVATAR_SERVER_URL: Avatar server for displaying user icons. Defaults to https://www.gravatar.com
DATABASE_URL: The database URL. See Configuring a Database. Possible schemes: postgres, postgresql, mysql2, and sqlite3. Defaults to no URL.
DB_ADAPTER: The database type. Possible values: mysql2, postgresql, and 'sqlite3'. Defaults to mysql.
DB_ENCODING: The database encoding. For DB_ADAPTER values postresql and mysql2, this parameter defaults to unicode and utf8 respectively. For full unicode support (all emojis) with mariadb or mysql set this to utf8mb4 and make sure to also set all tables to utf8mb4 and use collate utf8mb4_unicode_ci. Existing databases can be converted by following this HowTo.
DB_HOST: The database server hostname. Defaults to localhost.
DB_PORT: The database server port. Defaults to 3306.
DB_NAME: The database name. Defaults to redmine_production
DB_USER: The database user. Defaults to root
DB_PASS: The database password. Defaults to no password
DB_POOL: The database connection pool count. Defaults to 5.
DB_SKIP_CHECK: Skip waiting for the database to start. Defaults to false.
DB_SSL_MODE: Configures the database ssl mode. Valid options for postgresql (disable|allow|prefer|require|verify-ca|verify-full) and mysql (disable||preferred|required|verify_ca|verify_identity). Defaults to ''
LOGGER_LEVEL: Configures the amount of messages that are generated when redmine is running. Possible values are: debug, info, warn, error. Defaults to info
NGINX_ENABLED: Enable/disable the nginx server. Disabling Nginx is not recommended (see #148), use at your discretion. Defaults to true. When disabled publish port 8080 instead of the usual port 80 or 443.
NGINX_WORKERS: The number of nginx workers to start. Defaults to 1.
NGINX_MAX_UPLOAD_SIZE: Maximum acceptable upload size. Defaults to 20m.
NGINX_X_FORWARDED_PROTO: Advanced configuration option for the proxy_set_header X-Forwarded-Proto setting in the redmine nginx vHost configuration. Defaults to https when REDMINE_HTTPS is true, else defaults to $scheme.
NGINX_HSTS_ENABLED: Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true. See #138 for use case scenario.
NGINX_HSTS_MAXAGE: Advanced configuration option for setting the HSTS max-age in the redmine nginx vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
NGINX_CORS_ALLOW_ORIGIN: Sets Access-Control-Allow-Origin response header to indicate that the response can be shared with requesting code from the given origin.
NGINX_CORS_ALLOW_METHODS: Sets Access-Control-Allow-Methods response header to specify the methods allowed when accessing the resource in response to a preflight request.
NGINX_CORS_ALLOW_HEADERS: Sets Access-Control-Allow-Headers response header to specify which headers can be used during the actual request.
NGINX_CORS_ALLOW_CREDENTIALS: Sets Access-Control-Allow-Credentials response header to tell browsers whether to expose the response to frontend JavaScript code when the request's credentials mode (Request.credentials) is include.
UNICORN_WORKERS: The number of unicorn workers to start. Defaults to 2.
UNICORN_TIMEOUT: Sets the timeout of unicorn worker processes. Defaults to 60 seconds.
MEMCACHE_HOST: The host name of the memcached server. No defaults.
MEMCACHE_PORT: The connection port of the memcached server. Defaults to 11211.
SSL_CERTIFICATE_PATH: The path to the SSL certificate to use. Defaults to /home/redmine/data/certs/redmine.crt.
SSL_KEY_PATH: The path to the SSL certificate's private key. Defaults to /home/redmine/data/certs/redmine.key.
SSL_DHPARAM_PATH: The path to the Diffie-Hellman parameter. Defaults to /home/redmine/data/certs/dhparam.pem.
SSL_VERIFY_CLIENT: Enable verification of client certificates using the SSL_CA_CERTIFICATES_PATH file. Configures ssl_verify_client in nginx, options (off, on, optional, optional_no_ca). Defaults to off
SSL_CA_CERTIFICATES_PATH: List of SSL certificates to trust. Defaults to /home/redmine/data/certs/ca.crt.
SMTP_ENABLED: Enable mail delivery via SMTP. Defaults to true if SMTP_USER is defined, else defaults to false.
SMTP_DOMAIN: SMTP domain. Defaults to www.gmail.com
SMTP_HOST: SMTP server host. Defaults to smtp.gmail.com
SMTP_PORT: SMTP server port. Defaults to 587.
SMTP_USER: SMTP username.
SMTP_PASS: SMTP password.
SMTP_METHOD: SMTP delivery method. Possible values: smtp. Defaults to smtp.
SMTP_OPENSSL_VERIFY_MODE: SMTP openssl verification mode. Accepted values are none, peer, client_once and fail_if_no_peer_cert. SSL certificate verification is performed by default.
SMTP_STARTTLS: Enable STARTTLS. Defaults to true.
SMTP_TLS: Enable SSL/TLS. Defaults to false.
SMTP_SSL: Enable SSL. Defaults to false. https://www.redmine.org/projects/redmine/wiki/EmailConfiguration#Error-TimeoutError-due-to-SSL-SMTP-server-connection
SMTP_AUTHENTICATION: Specify the SMTP authentication method. Defaults to :login if SMTP_USER is set.
SMTP_CA_ENABLED: Enable custom CA certificates for SMTP email configuration. Defaults to false.
SMTP_CA_PATH: Specify the ca_path parameter for SMTP email configuration. Defaults to /home/redmine/data/certs.
SMTP_CA_FILE: Specify the ca_file parameter for SMTP email configuration. Defaults to /home/redmine/data/certs/ca.crt.
IMAP_ENABLED: Enable receiving email via IMAP. Defaults to false.
IMAP_USER: IMAP username. Defaults to value of SMTP_USER. NOTE: May require escaping special characters for (CRON or Bash). Currently known: '%' needs to be escaped '%'
IMAP_PASS: IMAP password. Defaults to value of SMTP_PASS. NOTE: May require escaping special characters for (CRON or Bash). Currently known: '%' needs to be escaped '%'
IMAP_HOST: IMAP server host. Defaults to imap.gmail.com.
IMAP_PORT: IMAP server port. Defaults to 993.
IMAP_SSL: IMAP enable SSL. Defaults to true.
IMAP_STARTTLS: IMAP enabled STARTTLS. Defaults to false.
IMAP_INTERVAL: The interval in minutes between checking emails. Defaults to 30. Values allowed in the range 1 - 60.
IMAP_FOLDER: IMAP folder to read. Defaults to INBOX.
IMAP_MOVE_ON_SUCCESS: Move emails that were successfully received to MAILBOX instead of deleting them.
IMAP_MOVE_ON_FAILURE: Move emails that were ignored to MAILBOX.
INCOMING_EMAIL_UNKNOWN_USER: How to handle emails from an unknown user. Accepted values are ignore, accept and create. Defaults to ignore.
INCOMING_EMAIL_NO_PERMISSION_CHECK: Disable permission checking when receiving the email. Defaults to false.
INCOMING_EMAIL_NO_ACCOUNT_NOTICE: Disable new user account notification. Defaults to true.
INCOMING_EMAIL_DEFAULT_GROUP: Adds created user to foo and bar groups.
INCOMING_EMAIL_PROJECT: Identifier of the target project.
INCOMING_EMAIL_PROJECT_FROM_SUBADRESS: ADDR select project from subaddress of ADDR found in To, Cc, Bcc headers.
INCOMING_EMAIL_STATUS: Name of the target status.
INCOMING_EMAIL_TRACKER: Name of the target tracker.
INCOMING_EMAIL_CATEGORY: Name of the target category.
INCOMING_EMAIL_PRIORITY: Name of the target priority.
INCOMING_EMAIL_PRIVATE: Create new issues as private.
INCOMING_EMAIL_ALLOW_OVERRIDE: Allow email content to override attributes specified by previous options. Value is a comma separated list of attributes. See redmine documentation for acceptable values.
USERMAP_UID: ID of user redmine inside container. Defaults to 1000.
USERMAP_GID: ID of group redmine inside container. Defaults to 1000.