animeic 1 年之前
父節點
當前提交
1c7232123b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docker-compose.yml

+ 3 - 1
docker-compose.yml

@@ -22,7 +22,7 @@ services:
     restart: always
     restart: always
     environment:
     environment:
       - driverName=mysql
       - driverName=mysql
-      - dataSourceName='root:infish_2023_xx@tcp(casdoor-mysql:3306)/'
+      - dataSourceName='casdoor:infish_2023_xx@tcp(casdoor-mysql:3306)/'
     ports:
     ports:
       - 8000:8000
       - 8000:8000
     depends_on:
     depends_on:
@@ -34,6 +34,8 @@ services:
     environment:
     environment:
       - MYSQL_ROOT_PASSWORD=infish_2023_xx
       - MYSQL_ROOT_PASSWORD=infish_2023_xx
       - MYSQL_DATABASE=casdoor
       - MYSQL_DATABASE=casdoor
+      - MYSQL_USER=casdoor
+      - MYSQL_PASSWORD=infish_2023_xx
     volumes:
     volumes:
       - /data/mysql/casdoor-data:/var/lib/mysql
       - /data/mysql/casdoor-data:/var/lib/mysql
     ports:
     ports: