mirror of
https://github.com/RaisFast/raisfast.git
synced 2026-09-25 16:02:41 +00:00
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
services:
|
|
backend:
|
|
build: .
|
|
ports:
|
|
- "9000:9000"
|
|
env_file: .env
|
|
environment:
|
|
DATABASE_URL: sqlite:/app/data/blog.db?mode=rwc
|
|
APP_ENV: production
|
|
CORS_ORIGINS: http://localhost:3000
|
|
STORAGE_DRIVER: s3
|
|
S3_ENDPOINT: http://rustfs:9000
|
|
S3_ACCESS_KEY: rustfsadmin
|
|
S3_SECRET_KEY: rustfsadmin
|
|
S3_BUCKET: blog
|
|
S3_REGION: us-east-1
|
|
volumes:
|
|
- blog-data:/app/data
|
|
- blog-logs:/app/logs
|
|
- blog-plugins:/app/plugins-data
|
|
depends_on:
|
|
rustfs:
|
|
condition: service_started
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./web
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
NEXT_PUBLIC_API_URL: http://localhost:9000/api/v1
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
rustfs:
|
|
image: rustfs/rustfs:latest
|
|
ports:
|
|
- "9001:9000"
|
|
- "9002:9001"
|
|
environment:
|
|
RUSTFS_ROOT_USER: rustfsadmin
|
|
RUSTFS_ROOT_PASSWORD: rustfsadmin
|
|
volumes:
|
|
- rustfs-data:/data
|
|
- rustfs-logs:/logs
|
|
command: server /data --console-address ":9001"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
blog-data:
|
|
blog-logs:
|
|
blog-plugins:
|
|
rustfs-data:
|
|
rustfs-logs:
|