From 6e69f6cdc360aa185e9ac9ea0a11f1434c30d445 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 31 Jul 2026 15:44:06 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.yaml | 10 +++++----- docker-compose.yml | 10 ++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index a6df5a8..af58ddd 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -3,16 +3,16 @@ server: admin_key: "admin-sk-change-me" database: - host: "127.0.0.1" + host: "mysql" port: 3306 - user: "notify" - password: "${DB_PASSWORD:-notify}" + user: "root" + password: "${DB_PASSWORD:-7Qay8mksnwrCffGi}" database: "notification" redis: - host: "127.0.0.1" + host: "redis" port: 6379 - password: "" + password: "XBAG3pjZbYxZpTWA" db: 0 smtp: diff --git a/docker-compose.yml b/docker-compose.yml index 5628f7a..9800cf0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,8 @@ services: interval: 5s timeout: 3s retries: 10 + networks: + - 1panel-network redis: image: redis:7-alpine @@ -27,6 +29,8 @@ services: interval: 5s timeout: 3s retries: 5 + networks: + - 1panel-network api: build: . @@ -43,6 +47,12 @@ services: redis: condition: service_healthy restart: unless-stopped + networks: + - 1panel-network volumes: mysql_data: + +networks: + 1panel-network: + external: true