mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-14 05:03:43 +08:00
2.0版本
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
version: '3'
|
||||
|
||||
networks:
|
||||
mynetwork:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0.33
|
||||
@@ -22,23 +18,6 @@ services:
|
||||
--collation-server=utf8mb4_general_ci
|
||||
--explicit_defaults_for_timestamp=true
|
||||
--lower_case_table_names=1
|
||||
privileged: true
|
||||
networks:
|
||||
- mynetwork
|
||||
|
||||
redis:
|
||||
image: redis:6.2.12
|
||||
container_name: redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- /docker/redis/conf:/redis/config:rw
|
||||
- /docker/redis/data/:/redis/data/:rw
|
||||
privileged: true
|
||||
networks:
|
||||
- mynetwork
|
||||
|
||||
ruoyi-server:
|
||||
image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/ai:1.2.1
|
||||
@@ -49,16 +28,6 @@ services:
|
||||
TZ: Asia/Shanghai
|
||||
# 运行端口号
|
||||
SERVER_PORT: 6039
|
||||
# 中转key
|
||||
CHAT_API_KEY: ${CHAT_API_KEY}
|
||||
# 中转地址
|
||||
CHAT_API_HOST: ${CHAT_API_HOST}
|
||||
# 邮箱授权码
|
||||
MAIL_PASS: ${MAIL_PASS}
|
||||
# 易支付商户ID
|
||||
PAY_PID: ${PAY_PID}
|
||||
# 易支付商户密钥
|
||||
PAY_KEY: ${PAY_KEY}
|
||||
# 数据库连接地址
|
||||
DB_URL: jdbc:mysql://mysql:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
|
||||
# 数据库用户名
|
||||
@@ -69,27 +38,27 @@ services:
|
||||
REDIS_HOST: redis
|
||||
# Redis端口
|
||||
REDIS_PORT: 6379
|
||||
# 数据库索引
|
||||
REDIS_DATABASE: 0
|
||||
# Redis密码
|
||||
REDIS_PASSWORD:
|
||||
# 连接超时时间
|
||||
REDIS_TIMEOUT: 10s
|
||||
volumes:
|
||||
- /docker/server2/logs/:/ruoyi/server/logs/
|
||||
privileged: true
|
||||
networks:
|
||||
- mynetwork
|
||||
|
||||
ruoyi-web:
|
||||
image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/web:1.2.1
|
||||
ports:
|
||||
- "8081:8081"
|
||||
container_name: ruoyi-web
|
||||
privileged: true
|
||||
networks:
|
||||
- mynetwork
|
||||
|
||||
|
||||
ruoyi-admin:
|
||||
image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/admin:1.2.1
|
||||
ports:
|
||||
- "8082:8082"
|
||||
container_name: ruoyi-admin
|
||||
privileged: true
|
||||
networks:
|
||||
- mynetwork
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user