refactor(docker): 重构容器配置并添加PostgreSQL支持
- 将Dockerfile重命名为Dockerfile.php以明确用途 - 新增Dockerfile.postgres用于构建带pgvector扩展的PostgreSQL镜像 - 拆分初始化SQL脚本为mysql和postgres专用版本 - 更新docker-compose配置以使用新的构建文件 - 修改init_env.sh脚本适配新的初始化文件路径 重构目的是提高配置的模块化和可维护性,同时为系统添加PostgreSQL向量搜索支持。
This commit is contained in:
1 parent
4c9e71955e
commit
ce13de6253
6 files changed
+38
-5
No files matched your search
+3
-1
@@ -44,10 +44,12 @@ wget -O /home/app/nginx.conf https://raw.githubusercontent.com/shakenny/containe
|
||||
wget -O /home/app/conf.d/default.conf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/default.conf
|
||||
|
||||
wget -O /home/app/mysql/conf.d/my.cnf https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/my.cnf
|
||||
wget -O /home/app/mysql/conf.d/init.sql https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/init.sql
|
||||
wget -O /home/app/mysql/conf.d/init.sql https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/init_mysql.sql
|
||||
|
||||
wget -O /home/app/redis/conf/redis.conf https://raw.githubusercontent.com/redis/redis/7.2/redis.conf
|
||||
|
||||
wget -O /home/app/postgresql/init.sql https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/init_postgres.sql
|
||||
|
||||
# 修改Redis配置文件
|
||||
sed -i "s/bind 127.0.0.1 -::1/bind 0.0.0.0/g" /home/app/redis/conf/redis.conf
|
||||
sed -i "s/# requirepass foobared/requirepass \!Ybw324\!/g" /home/app/redis/conf/redis.conf
|
||||
|
||||
Reference in new issue
Block a user