KM Koushik 59527eefba
Some checks failed
Publish Docker / Build and publish platform containers (map[context:. dockerfile:./docker/Dockerfile name:usesend], warp-ubuntu-latest-arm64-2x) (push) Has been cancelled
Publish Docker / Build and publish platform containers (map[context:. dockerfile:./docker/Dockerfile name:usesend], warp-ubuntu-latest-x64-2x) (push) Has been cancelled
Publish Docker / Build and publish platform containers (map[context:./apps/smtp-server dockerfile:./apps/smtp-server/Dockerfile name:smtp-proxy], warp-ubuntu-latest-arm64-2x) (push) Has been cancelled
Publish Docker / Build and publish platform containers (map[context:./apps/smtp-server dockerfile:./apps/smtp-server/Dockerfile name:smtp-proxy], warp-ubuntu-latest-x64-2x) (push) Has been cancelled
Publish Docker / Create and publish manifest (push) Has been cancelled
fix(self-host): replace the unmaintained MinIO with RustFS, plus hono, React and Node 24 updates (#484)
MinIO's community image was removed from Docker Hub and is no longer patched. Self-hosted compose now runs RustFS, wires the app to it, makes uploaded images publicly readable and keeps existing MINIO_ROOT_* credentials working. Also hono 4.13, React 19.1.10, turbo 2.11 and a node:24-alpine3.24 base image.

Co-authored-by: Vincent Vu <172068404+rubixvi@users.noreply.github.com>
2026-10-26 11:27:58 +11:00

93 lines
2.7 KiB
YAML

name: unsend-dev
services:
postgres:
image: postgres:16
container_name: unsend-db-dev
restart: always
environment:
- POSTGRES_USER=usesend
- POSTGRES_PASSWORD=password
- POSTGRES_DB=usesend
volumes:
- database:/var/lib/postgresql/data
ports:
- "54320:5432"
redis:
image: redis:7
container_name: unsend-redis-dev
restart: always
ports:
- "6379:6379"
volumes:
- redis:/data
command: ["redis-server", "--maxmemory-policy", "noeviction"]
local-sen-sns:
image: usesend/local-ses-sns:latest
container_name: local-ses-sns
restart: always
ports:
- "5350:3000"
environment:
WEBHOOK_URL: http://host.docker.internal:3000/api/ses_callback
extra_hosts:
- "host.docker.internal:host-gateway"
# S3-compatible storage for editor image uploads. Matching .env values:
# S3_COMPATIBLE_ACCESS_KEY=usesend, S3_COMPATIBLE_SECRET_KEY=password,
# S3_COMPATIBLE_API_URL=http://localhost:9002,
# S3_COMPATIBLE_PUBLIC_URL=http://localhost:9002/unsend
rustfs:
image: rustfs/rustfs:1.0.4
container_name: unsend-rustfs-dev
restart: always
ports:
- 127.0.0.1:9002:9000
- 127.0.0.1:9001:9001
environment:
RUSTFS_ACCESS_KEY: usesend
RUSTFS_SECRET_KEY: password
RUSTFS_ADDRESS: 0.0.0.0:9000
RUSTFS_CONSOLE_ADDRESS: 0.0.0.0:9001
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_OBS_LOGGER_LEVEL: error
volumes:
- rustfs:/data
command: ["/data"]
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:9000/health"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
rustfs-init:
image: amazon/aws-cli:2.34.30
restart: "no"
entrypoint: ["/bin/sh", "-ec"]
environment:
AWS_ACCESS_KEY_ID: usesend
AWS_SECRET_ACCESS_KEY: password
AWS_DEFAULT_REGION: us-east-1
AWS_EC2_METADATA_DISABLED: "true"
BUCKET: unsend
APP_ORIGIN: http://localhost:3000
depends_on:
rustfs:
condition: service_healthy
command:
- |
s3="aws --endpoint-url http://rustfs:9000 s3api"
$$s3 head-bucket --bucket "$$BUCKET" >/dev/null 2>&1 || $$s3 create-bucket --bucket "$$BUCKET"
$$s3 put-bucket-cors --bucket "$$BUCKET" --cors-configuration \
'{"CORSRules":[{"AllowedOrigins":["'"$$APP_ORIGIN"'"],"AllowedMethods":["GET","HEAD","PUT"],"AllowedHeaders":["*"],"ExposeHeaders":["ETag"],"MaxAgeSeconds":3600}]}'
$$s3 put-bucket-policy --bucket "$$BUCKET" --policy \
'{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":["s3:GetObject"],"Resource":["arn:aws:s3:::'"$$BUCKET"'/*"]}]}'
volumes:
database:
redis:
rustfs: