chore: Update Docker compose files to use named volumes (#6704)

* chore: Update Docker compose files to use named volumes

* chore: Update Docker compose files to use named volumes (prod)
This commit is contained in:
Jon
2026-04-02 13:40:44 +08:00
committed by GitHub
parent 7049167c88
commit 515f1077c8
28 changed files with 498 additions and 167 deletions
+13 -6
View File
@@ -58,7 +58,7 @@ services:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
volumes:
- ./pg/data:/var/lib/postgresql/data
- fastgpt-pg:/var/lib/postgresql/data
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s
@@ -79,7 +79,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes:
- ./mongo/data:/data/db
- fastgpt-mongo:/data/db
healthcheck:
test:
[
@@ -145,9 +145,9 @@ services:
retries: 3
start_period: 30s
volumes:
- ./redis/data:/data
- fastgpt-redis:/data
fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
image: minio/minio:RELEASE.2025-09-07T16-13-09Z # cpu 不支持 AVX 时候使用 RELEASE.2025-09-07T16-13-09Z-cpuv1
container_name: fastgpt-minio
restart: always
networks:
@@ -159,7 +159,7 @@ services:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./fastgpt-minio:/data
- fastgpt-minio:/data
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
@@ -341,7 +341,7 @@ services:
restart: unless-stopped
container_name: aiproxy_pg
volumes:
- ./aiproxy_pg:/var/lib/postgresql/data
- fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks:
- aiproxy
environment:
@@ -358,6 +358,13 @@ networks:
fastgpt:
aiproxy:
volumes:
fastgpt-pg:
fastgpt-mongo:
fastgpt-redis:
fastgpt-minio:
fastgpt-aiproxy_pg:
configs:
opensandbox-config:
content: |