mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-24 11:39:31 -05:00
feat: replace minio with rustfs (#7742)
This commit is contained in:
+38
-7
@@ -24,22 +24,53 @@ services:
|
||||
volumes:
|
||||
- valkey-data:/data
|
||||
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
command: server /data --console-address ":9001"
|
||||
rustfs-perms:
|
||||
image: busybox:1.36.1
|
||||
user: "0:0"
|
||||
command: ["sh", "-c", "mkdir -p /data && chown -R 10001:10001 /data"]
|
||||
volumes:
|
||||
- rustfs-data:/data
|
||||
|
||||
rustfs:
|
||||
image: rustfs/rustfs:1.0.0-alpha.93
|
||||
depends_on:
|
||||
rustfs-perms:
|
||||
condition: service_completed_successfully
|
||||
command: /data
|
||||
environment:
|
||||
- MINIO_ROOT_USER=devminio
|
||||
- MINIO_ROOT_PASSWORD=devminio123
|
||||
- RUSTFS_ACCESS_KEY=devrustfs
|
||||
- RUSTFS_SECRET_KEY=devrustfs123
|
||||
- RUSTFS_ADDRESS=:9000
|
||||
- RUSTFS_CONSOLE_ENABLE=true
|
||||
- RUSTFS_CONSOLE_ADDRESS=:9001
|
||||
ports:
|
||||
- "9000:9000" # S3 API direct access
|
||||
- "9001:9001" # Web console
|
||||
volumes:
|
||||
- minio-data:/data
|
||||
- rustfs-data:/data
|
||||
|
||||
rustfs-init:
|
||||
image: minio/mc@sha256:95b5f3f7969a5c5a9f3a700ba72d5c84172819e13385aaf916e237cf111ab868
|
||||
depends_on:
|
||||
- rustfs
|
||||
environment:
|
||||
- RUSTFS_ADMIN_USER=devrustfs
|
||||
- RUSTFS_ADMIN_PASSWORD=devrustfs123
|
||||
- RUSTFS_BUCKET_NAME=formbricks
|
||||
- RUSTFS_POLICY_NAME=formbricks-policy
|
||||
- RUSTFS_SERVICE_USER=devrustfs-service
|
||||
- RUSTFS_SERVICE_PASSWORD=devrustfs-service123
|
||||
- RUSTFS_CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:3001,http://127.0.0.1:3001,http://localhost:3002,http://127.0.0.1:3002
|
||||
volumes:
|
||||
- ./docker/rustfs-init.sh:/usr/local/bin/rustfs-init.sh:ro
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /usr/local/bin/rustfs-init.sh
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
driver: local
|
||||
valkey-data:
|
||||
driver: local
|
||||
minio-data:
|
||||
rustfs-data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user