From 91358962aabf50cf8fb1b83f7edaa4f4e6f18e0f Mon Sep 17 00:00:00 2001 From: FamousMai <906631095@qq.com> Date: Sun, 10 Aug 2025 14:17:24 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20docker=20compose=20=E4=BF=AE=E6=AD=A3admi?= =?UTF-8?q?n-server=E9=85=8D=E7=BD=AE=E6=8C=82=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/admin-server/config.docker.yaml | 179 +++++++++++++++++++++++++ docker/docker-compose.dify-plus.yaml | 4 +- 2 files changed, 181 insertions(+), 2 deletions(-) create mode 100644 docker/admin-server/config.docker.yaml diff --git a/docker/admin-server/config.docker.yaml b/docker/admin-server/config.docker.yaml new file mode 100644 index 000000000..ea7a99496 --- /dev/null +++ b/docker/admin-server/config.docker.yaml @@ -0,0 +1,179 @@ +aliyun-oss: + endpoint: yourEndpoint + access-key-id: yourAccessKeyId + access-key-secret: yourAccessKeySecret + bucket-name: yourBucketName + bucket-url: yourBucketUrl + base-path: yourBasePath +autocode: + web: web/src + root: + server: server + module: github.com/flipped-aurora/gin-vue-admin/server + ai-path: "" +aws-s3: + bucket: xxxxx-10005608 + region: ap-shanghai + endpoint: "" + secret-id: your-secret-id + secret-key: your-secret-key + base-url: https://gin.vue.admin + path-prefix: github.com/flipped-aurora/gin-vue-admin/server + s3-force-path-style: false + disable-ssl: false +captcha: + key-long: 6 + img-width: 240 + img-height: 80 + open-captcha: 0 + open-captcha-timeout: 3600 +cloudflare-r2: + bucket: xxxx0bucket + base-url: https://gin.vue.admin.com + path: uploads + account-id: xxx_account_id + access-key-id: xxx_key_id + secret-access-key: xxx_secret_key +cors: + mode: strict-whitelist + whitelist: + - allow-origin: example1.com + allow-methods: POST, GET + allow-headers: Content-Type,AccessToken,X-CSRF-Token, Authorization, Token,X-Token,X-User-Id + expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type + allow-credentials: true + - allow-origin: example2.com + allow-methods: GET, POST + allow-headers: content-type + expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type + allow-credentials: true +db-list: + - type: "" + alias-name: "" + prefix: "" + port: "" + config: "" + db-name: "" + username: "" + password: "" + path: "" + engine: "" + log-mode: "" + max-idle-conns: 10 + max-open-conns: 100 + singular: false + log-zap: false + disable: true +disk-list: + - mount-point: / +email: + to: xxx@qq.com + from: xxx@163.com + host: smtp.163.com + secret: xxx + nickname: test + port: 465 + is-ssl: true +excel: + dir: ./resource/excel/ +gaia: + url: http://api:5001 + login_max_error_limit: 5 + SUPER_ADMIN_ACCOUNT_ID: + SUPER_ADMIN_TENANT_ID: +hua-wei-obs: + path: you-path + bucket: you-bucket + endpoint: you-endpoint + access-key: you-access-key + secret-key: you-secret-key +jwt: + signing-key: sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U + expires-time: 1d + buffer-time: 1d + issuer: CLOUD +local: + path: uploads/file + store-path: uploads/file +minio: + endpoint: yourEndpoint + access-key-id: yourAccessKeyId + access-key-secret: yourAccessKeySecret + bucket-name: yourBucketName + use-ssl: false + base-path: "" + bucket-url: http://host:9000/yourBucketName +oa-login: + url: + oauth2-client-id: + oauth2-client-secret: + get-user-info-api-path: + get-token-by-code-api-path: +pgsql: + prefix: "" + port: "5432" + config: sslmode=disable TimeZone=Asia/Shanghai + db-name: + username: + password: + path: + engine: "" + log-mode: error + max-idle-conns: 10 + max-open-conns: 100 + singular: false + log-zap: false +qiniu: + zone: ZoneHuaDong + bucket: "" + img-path: "" + access-key: "" + secret-key: "" + use-https: false + use-cdn-domains: false +dify-redis: + name: "" + addr: redis:6379 + password: difyai123456 + db: 0 + useCluster: false +redis: + name: "" + addr: redis:6379 + password: difyai123456 + db: 8 + useCluster: false + clusterAddrs: + - 172.21.0.3:7000 + - 172.21.0.4:7001 + - 172.21.0.2:7002 +system: + db-type: pgsql + oss-type: local + router-prefix: "" + addr: 8888 + iplimit-count: 15000 + iplimit-time: 3600 + use-multipoint: false + use-redis: true + use-mongo: false + use-strict-auth: false + user_default-group-id: "888" + docker-run: true +tencent-cos: + bucket: xxxxx-10005608 + region: ap-shanghai + secret-id: your-secret-id + secret-key: your-secret-key + base-url: https://gin.vue.admin + path-prefix: github.com/flipped-aurora/gin-vue-admin/server +zap: + level: info + prefix: '[dify_plus/admin_server]' + format: json + director: log + encode-level: LowercaseColorLevelEncoder + stacktrace-key: stacktrace + show-line: true + log-in-console: true + retention-day: -1 diff --git a/docker/docker-compose.dify-plus.yaml b/docker/docker-compose.dify-plus.yaml index 3733744c6..563f92246 100644 --- a/docker/docker-compose.dify-plus.yaml +++ b/docker/docker-compose.dify-plus.yaml @@ -1109,8 +1109,6 @@ services: depends_on: - admin-server command: [ 'nginx-debug', '-g', 'daemon off;' ] - volumes: - - ./volumes/admin-server/config.docker.yaml:/app/config.docker.yaml networks: - default @@ -1131,6 +1129,8 @@ services: networks: - ssrf_proxy_network - default + volumes: + - ./admin-server/config.docker.yaml:/app/config.docker.yaml # Extend - sandbox-full sandbox-full: