|
@@ -0,0 +1,29 @@
|
|
|
|
+version: "3.8"
|
|
|
|
+
|
|
|
|
+networks:
|
|
|
|
+ default:
|
|
|
|
+ name: default-network
|
|
|
|
+ external: true
|
|
|
|
+
|
|
|
|
+services:
|
|
|
|
+ casdoor:
|
|
|
|
+ image: casbin/casdoor:latest
|
|
|
|
+ restart: always
|
|
|
|
+ environment:
|
|
|
|
+ - driverName=mysql
|
|
|
|
+ - dateaSourceName='root:infish_2023_xx@tcp(casdoor-mysql:3306)/'
|
|
|
|
+ ports:
|
|
|
|
+ - 8000:8000
|
|
|
|
+ depends_on:
|
|
|
|
+ - casdoor-mysql
|
|
|
|
+
|
|
|
|
+ casdoor-mysql:
|
|
|
|
+ image: mysql:8
|
|
|
|
+ restart: always
|
|
|
|
+ environment:
|
|
|
|
+ - MYSQL_ROOT_PASSWORD=infish_2023_xx
|
|
|
|
+ - MYSQL_DATABASE=casdoor
|
|
|
|
+ volumes:
|
|
|
|
+ - /data/mysql/casdoor-data:/var/lib/mysql
|
|
|
|
+ ports:
|
|
|
|
+ - 3307:3306
|