feat: 增加 roundcube 应用

This commit is contained in:
zhengkunwang223
2023-11-07 11:15:31 +08:00
parent 1cead68194
commit ce8dee0471
6 changed files with 143 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
additionalProperties:
formFields:
- default: ""
envKey: PANEL_DB_HOST
key: mysql
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: de
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: de
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: de
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: imap.sina.com
edit: true
envKey: IMAP_SERVER
labelEn: IMAP Server
labelZh: IMAP 服务器
required: true
type: text
- default: 143
edit: true
envKey: IMAP_SERVER_PORT
labelEn: SMTP Port
labelZh: SMTP 端口
required: true
rule: paramPort
type: number
- default: smtp.sina.com
edit: true
envKey: SMTP_SERVER
labelEn: SMTP Server
labelZh: SMTP 服务器
required: true
type: text
- default: 587
edit: true
envKey: SMTP_SERVER_PORT
labelEn: Port
labelZh: IMAP4 端口
required: true
rule: paramPort
type: number
- default: 8080
envKey: PANEL_APP_PORT_HTTP
edit: true
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
@@ -0,0 +1,29 @@
version: '3'
services:
roundcube:
image: roundcube/roundcubemail:1.6.5-apache
container_name: ${CONTAINER_NAME}
restart: always
environment:
ROUNDCUBE_DB_TYPE: mysql
ROUNDCUBE_DB_HOST: ${PANEL_DB_HOST}
ROUNDCUBE_DB_USER: ${PANEL_DB_USER}
ROUNDCUBE_DB_PASSWORD: ${PANEL_DB_USER_PASSWORD}
ROUNDCUBE_DB_NAME: ${PANEL_DB_NAME}
ROUNDCUBEMAIL_DEFAULT_HOST: ${IMAP_SERVER}
ROUNDCUBEMAIL_DEFAULT_PORT: ${IMAP_SERVER_PORT}
ROUNDCUBEMAIL_SMTP_SERVER: ${SMTP_SERVER}
ROUNDCUBEMAIL_SMTP_PORT: ${SMTP_SERVER_PORT}
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE: 5M
ports:
- ${PANEL_APP_PORT_HTTP}:80
volumes:
- ./logs:/var/log/apache2
- ./data:/var/www/html
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true