# Example Docker Compose for NocoDB with MinIO S3 Storage
#
# NOTE: This is an example configuration for reference.
# Since you're using Coolify, add these environment variables directly
# to your NocoDB service in Coolify, not via docker-compose.
services:
nocodb:
image: nocodb/nocodb:latest
container_name: nocodb
restart: unless-stopped
ports:
- "8080:8080"
environment:
# Database Configuration (adjust based on your setup)
- NC_DB=sqlite:///usr/app/data/nocodb.db
# Or use PostgreSQL/MySQL:
# - NC_DB=pg://user:password@postgres:5432/nocodb
# MinIO S3 Storage Configuration
- NC_S3_BUCKET_NAME=nocodb-storage
- NC_S3_REGION=us-east-1
- NC_S3_ENDPOINT=https://minio-api.v1su4.com
- NC_S3_ACCESS_KEY=${MINIO_ACCESS_KEY}
- NC_S3_ACCESS_SECRET=${MINIO_SECRET_KEY}
- NC_S3_FORCE_PATH_STYLE=true
- NC_S3_ACL=public-read
# Optional: Other NocoDB settings
- NC_PUBLIC_URL=https://nocodb.v1su4.com
- NC_AUTH_JWT_SECRET=${JWT_SECRET}
volumes:
- nocodb_data:/usr/app/data
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
nocodb_data:
# For Coolify Deployment:
# 1. Go to your NocoDB service in Coolify
# 2. Navigate to Environment Variables
# 3. Add the MinIO S3 variables (see MINIO_S3_CONFIGURATION.md)
# 4. Use Coolify's secret management for sensitive values
# 5. Restart the NocoDB service after adding variables