fix(deploy): remove minio service and use local persistent storage volume in docker-compose.production.yml

This commit is contained in:
linkitapps
2026-09-27 01:34:33 +09:00
parent 47181fa5ca
commit 8460a36a67
+3 -12
View File
@@ -1,7 +1,6 @@
# Host port plan (this Ubuntu server already uses 8000 for current SourceHub). # Host port plan (this Ubuntu server already uses 8000 for current SourceHub).
# SourceHub 3.8 web → 127.0.0.1:18000 (container 8000) # SourceHub 3.8 web → 127.0.0.1:18000 (container 8000)
# Postgres / MinIO / ClamAV → Docker network only (no host 5432/9000/3310) # Postgres / ClamAV → Docker network only (no host ports)
# Keep existing python3:8000 running until Nginx cutover.
services: services:
postgres: postgres:
@@ -11,14 +10,6 @@ services:
- sourcehub_pg:/var/lib/postgresql/data - sourcehub_pg:/var/lib/postgresql/data
restart: unless-stopped restart: unless-stopped
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
env_file: .env.production
volumes:
- sourcehub_minio:/data
restart: unless-stopped
clamav: clamav:
image: clamav/clamav:stable image: clamav/clamav:stable
restart: unless-stopped restart: unless-stopped
@@ -28,12 +19,12 @@ services:
env_file: .env.production env_file: .env.production
ports: ports:
- "127.0.0.1:18000:8000" - "127.0.0.1:18000:8000"
volumes:
- ./storage:/app/storage
depends_on: depends_on:
- postgres - postgres
- minio
- clamav - clamav
restart: unless-stopped restart: unless-stopped
volumes: volumes:
sourcehub_pg: sourcehub_pg:
sourcehub_minio: