diff --git a/docker-compose.yml b/docker-compose.yml index 08c97f85..4cdcb2af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,10 @@ services: --max_allowed_packet=128M --default-authentication-plugin=caching_sha2_password ports: - - 13306:3306 + - 55616:3306 + # 添加数据卷挂载,将MySQL数据持久化到宿主机目录 + volumes: + - /vol1/1000/AIOL/mysql-jeecg:/var/lib/mysql networks: - jeecg-boot @@ -40,7 +43,7 @@ services: POSTGRES_PASSWORD: postgres POSTGRES_DB: vector_db ports: - - 5432:5432 + - 54321:5432 restart: always networks: - jeecg-boot @@ -69,8 +72,9 @@ services: networks: - jeecg-boot ports: - - 80:80 + - 55617:80 networks: jeecg-boot: name: jeecg_boot + \ No newline at end of file