Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Add one-command self-hosting with Docker Compose
Richie McIlroy8210173dcfce
diff --git a/.github/workflows/docker-build-media-server.yml b/.github/workflows/docker-build-media-server.ymlnew file mode 100644index 000000000..8b7fd2e02--- /dev/null+++ b/.github/workflows/docker-build-media-server.yml@@ -0,0 +1,110 @@+name: "Docker Build Media Server"++on:+ workflow_dispatch:+ inputs:+ tag:+ description: "Tag for the Docker image"+ required: false+ default: "latest"+ type: string+ push:+ branches:+ - main+ paths:+ - "apps/media-server/**"++jobs:+ build:+ name: Build Docker Image (${{ matrix.platform }})+ runs-on: ${{ matrix.runner }}+ strategy:+ matrix:+ include:+ - platform: amd64+ runner: ubuntu-24.04+ - platform: arm64+ runner: ubuntu-24.04-arm+ fail-fast: false+ permissions:+ contents: read+ packages: write++ steps:+ - name: Checkout Repository+ uses: actions/checkout@v4++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Login to GitHub Container Registry+ uses: docker/login-action@v3+ with:+ registry: ghcr.io+ username: ${{ github.actor }}+ password: ${{ secrets.GITHUB_TOKEN }}++ - name: Downcase GITHUB_REPOSITORY_OWNER+ run: |+ echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER@L}" >>${GITHUB_ENV}++ - name: Build and Push Platform Image+ id: build+ uses: docker/build-push-action@v5+ with:+ context: ./apps/media-server+ file: ./apps/media-server/Dockerfile.standalone+ platforms: linux/${{ matrix.platform }}+ push: true+ outputs: type=image,name=ghcr.io/${{ env.REPOSITORY_OWNER }}/cap-media-server,push-by-digest=true+ cache-from: type=gha,scope=media-server-${{ matrix.platform }}+ cache-to: type=gha,mode=max,scope=media-server-${{ matrix.platform }}++ - name: Export Digest+ run: |+ mkdir -p /tmp/digests+ digest="${{ steps.build.outputs.digest }}"+ touch "/tmp/digests/${digest#sha256:}"++ - name: Upload Digest+ uses: actions/upload-artifact@v4+ with:+ name: digests-media-server-${{ matrix.platform }}+ path: /tmp/digests/*+ if-no-files-found: error+ retention-days: 1++ merge:+ name: Create Multi-Architecture Manifest+ needs: build+ runs-on: ubuntu-latest+ permissions:+ contents: read+ packages: write++ steps:+ - name: Download Digests+ uses: actions/download-artifact@v4+ with:+ path: /tmp/digests+ pattern: digests-media-server-*+ merge-multiple: true++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Login to GitHub Container Registry+ uses: docker/login-action@v3+ with:+ registry: ghcr.io+ username: ${{ github.actor }}+ password: ${{ secrets.GITHUB_TOKEN }}++ - name: Downcase GITHUB_REPOSITORY_OWNER+ run: |+ echo "REPOSITORY_OWNER=${GITHUB_REPOSITORY_OWNER@L}" >>${GITHUB_ENV}++ - name: Create Image Manifest+ run: |+ docker buildx imagetools create -t ghcr.io/${{ env.REPOSITORY_OWNER }}/cap-media-server:${{ inputs.tag || 'latest' }} \+ $(find /tmp/digests -type f -not -path "*/\.*" -exec basename {} \; | xargs -I {} echo "ghcr.io/${{ env.REPOSITORY_OWNER }}/cap-media-server@sha256:{}")diff --git a/README.md b/README.mdindex 314deee61..353eb45f9 100644--- a/README.md+++ b/README.md@@ -24,12 +24,38 @@ Cap is the open source alternative to Loom. It's a video messaging tool that all# Self Hosting-Cap Web is available to self-host using Docker or Railway, see our [self-hosting docs](https://cap.so/docs/self-hosting) to learn more.-You can also use the button below to deploy Cap Web to Railway:+### Quick Start (One Command)++```bash+git clone https://github.com/CapSoftware/Cap.git && cd Cap && docker compose up -d+```++Cap will be running at `http://localhost:3000`. That's it!++> **Note:** Login links appear in the logs (`docker compose logs cap-web`) since email isn't configured by default.++### Other Deployment Options++| Method | Best For |+|--------|----------|+| **Docker Compose** | VPS, home servers, any Docker host |+| **[Railway](https://railway.com/new/template/PwpGcf)** | One-click managed hosting |+| **Coolify** | Self-hosted PaaS (use `docker-compose.coolify.yml`) |[](https://railway.com/new/template/PwpGcf)-Cap Desktop can connect to your self-hosted Cap Web instance regardless of if you build it yourself or [download from our website](https://cap.so/download).+### Production Configuration++For production, create a `.env` file:++```bash+CAP_URL=https://cap.yourdomain.com+S3_PUBLIC_URL=https://s3.yourdomain.com+```++See our [self-hosting docs](https://cap.so/docs/self-hosting) for full configuration options including email setup, AI features, and SSL.++Cap Desktop can connect to your self-hosted instance via Settings → Cap Server URL.# Monorepo App Architecturediff --git a/apps/media-server/Dockerfile.standalone b/apps/media-server/Dockerfile.standalonenew file mode 100644index 000000000..a99ead35d--- /dev/null+++ b/apps/media-server/Dockerfile.standalone@@ -0,0 +1,18 @@+FROM oven/bun:1-alpine++RUN apk add --no-cache ffmpeg++WORKDIR /app++COPY package.json ./+RUN bun install --production++COPY src ./src++ENV PORT=3456+EXPOSE 3456++HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \+ CMD wget -qO- http://localhost:${PORT}/health || exit 1++CMD ["bun", "run", "src/index.ts"]diff --git a/apps/web/content/docs/self-hosting.mdx b/apps/web/content/docs/self-hosting.mdxindex d97025159..ed9b9c616 100644--- a/apps/web/content/docs/self-hosting.mdx+++ b/apps/web/content/docs/self-hosting.mdx@@ -8,9 +8,6 @@ image: "/docs/self-hosting.webp"Cap Web is our web application for uploading and sharing Caps - it's what runs right here on [cap.so](https://cap.so).You can upload videos to it from the dashboard or from Cap Desktop.-This guide describes our two supported deployment methods, how to connect Cap Desktop,-and how to configure email login links.-<div style={{ position: "relative", paddingBottom: "56.25%", height: 0 }}><iframesrc="https://cap.so/embed/k310v2vf41d6ffp"@@ -27,49 +24,170 @@ and how to configure email login links.></iframe></div>-## Deployment Methods+## Quick Start (One Command)++The fastest way to self-host Cap is with Docker Compose. This single command will start everything you need:++```bash+git clone https://github.com/CapSoftware/Cap.git+cd Cap+docker compose up -d+```++That's it! Cap will be available at `http://localhost:3000`.++Login links will appear in the logs since email isn't configured:+```bash+docker compose logs cap-web+```++## Deployment Options++### Option 1: Docker Compose (Recommended)++Best for VPS, home servers, or any Docker-capable host.++**What's included:**+- Cap Web application+- Media server (FFmpeg processing)+- MySQL database+- MinIO (S3-compatible storage)-### Deploying with Railway+**Steps:**+1. Clone the repository+2. Run `docker compose up -d`+3. Access Cap at `http://localhost:3000`-One-click deployment via Railway is the easiest way to deploy Cap Web.-The button below will take you to the Cap Web Railway template,-which will deploy the Cap Web Docker image, a MySQL database,-and [MinIO](https://min.io) for storing videos.+**Custom configuration:**++Create a `.env` file to customize your deployment:++```bash+# Public URL (required for production)+CAP_URL=https://cap.yourdomain.com++# S3 public URL (for video playback)+S3_PUBLIC_URL=https://s3.yourdomain.com++# Optional: Custom ports+CAP_PORT=3000+MINIO_PORT=9000++# Optional: Custom passwords (auto-generated if not set)+MYSQL_PASSWORD=your-secure-password+MINIO_ROOT_PASSWORD=your-minio-password+```++### Option 2: Railway (One-Click)[](https://railway.com/new/template/PwpGcf)-Once deployed, login email links will be available in Railway’s Deploy Logs.+Railway provides a fully managed deployment with automatic SSL and scaling.+Login credentials appear in Railway's Deploy Logs after deployment.-### Custom Deployment with Docker+### Option 3: Coolify-The [Cap Web Docker image](https://github.com/CapSoftware/Cap/pkgs/container/cap-web)-allows you to deploy Cap Web anywhere you like.-You will need to connect your own MySQL database and S3-compatible storage.-Refer to the [Docker Compose template](https://github.com/CapSoftware/Cap/blob/main/docker-compose.template.yml)-for an example setup, including necessary environment variables.+For Coolify users, use `docker-compose.coolify.yml` which includes environment variable placeholders:++1. Create a new Docker Compose project in Coolify+2. Point to the Cap repository+3. Set compose file to `docker-compose.coolify.yml`+4. Configure environment variables in Coolify's UI+5. Deploy## Connecting Cap Desktop-Copy the URL of your Cap Web deployment, and set the 'Cap Server URL'-in Cap Desktop's settings page to this URL.-Uploads from Cap Desktop will now be sent to your Cap Web deployment.+1. Open Cap Desktop settings+2. Set 'Cap Server URL' to your deployment URL (e.g., `https://cap.yourdomain.com`)+3. Uploads will now go to your self-hosted instance-## Email Login Links+## Email Configuration-If the `RESEND_API_KEY` and `RESEND_FROM_DOMAIN` environment variables are not set,-login links will be written to the server logs.-To send login links via email, you'll need to configure [Resend](https://resend.com):+By default, login links are printed to the server logs. To send emails:1. Create an account at [Resend](https://resend.com)-2. Connect a domain and set it as `RESEND_FROM_DOMAIN`-3. Generate an API key and set it as `RESEND_API_KEY`+2. Add these environment variables:+ ```bash+ RESEND_API_KEY=re_xxxxx+ RESEND_FROM_DOMAIN=yourdomain.com+ ```++## Optional Features-## Other Configuration+### AI Features-See [`env/server.ts`](https://github.com/CapSoftware/Cap/blob/main/packages/env/server.ts) for a description of all environment variables you can configure.+For video transcription and AI summaries:++```bash+DEEPGRAM_API_KEY=your-key # Transcription+GROQ_API_KEY=your-key # AI summaries (preferred)+OPENAI_API_KEY=your-key # AI summaries (fallback)+```++### Google OAuth++```bash+GOOGLE_CLIENT_ID=your-client-id+GOOGLE_CLIENT_SECRET=your-secret+```++## Production Checklist++> **Important:** The default configuration uses placeholder passwords suitable for local testing only. For production, you must set secure values via environment variables.++For production deployments:++- [ ] Set secure passwords: `MYSQL_PASSWORD`, `MINIO_ROOT_PASSWORD`+- [ ] Set secure secrets: `DATABASE_ENCRYPTION_KEY`, `NEXTAUTH_SECRET`, `MEDIA_SERVER_WEBHOOK_SECRET` (use `openssl rand -hex 32`)+- [ ] Set `CAP_URL` to your public URL+- [ ] Set `S3_PUBLIC_URL` to your MinIO/S3 public URL+- [ ] Configure a reverse proxy (nginx, Caddy, Traefik) with SSL+- [ ] Set up email with Resend+- [ ] Configure backups for MySQL and MinIO volumes++## Architecture++```+┌─────────────────┐ ┌─────────────────┐+│ Cap Desktop │────▶│ Cap Web │+└─────────────────┘ │ (port 3000) │+ └────────┬────────┘+ │+ ┌────────────┼────────────┐+ ▼ ▼ ▼+ ┌──────────┐ ┌──────────┐ ┌──────────┐+ │ MySQL │ │ MinIO │ │ Media │+ │ (3306) │ │ (9000) │ │ Server │+ └──────────┘ └──────────┘ └──────────┘+```++## Environment Variables Reference++See [`packages/env/server.ts`](https://github.com/CapSoftware/Cap/blob/main/packages/env/server.ts) for all available options.++## Troubleshooting++**Can't access Cap after starting:**+```bash+docker compose logs cap-web+```++**Database migration issues:**+```bash+docker compose down -v # Warning: deletes data+docker compose up -d+```++**Reset everything:**+```bash+docker compose down -v+docker compose up -d+```## Support-If you encounter a problem with the Docker image or think this documentation is lacking,-please [open an issue](https://github.com/CapSoftware/Cap/issues/new).-We do not offer support services for self-hosted deployments.+If you encounter issues with self-hosting:+- [Open a GitHub issue](https://github.com/CapSoftware/Cap/issues/new)+- Check existing issues for solutions++We do not offer direct support for self-hosted deployments.diff --git a/docker-compose.coolify.env.example b/docker-compose.coolify.env.examplenew file mode 100644index 000000000..144db76dc--- /dev/null+++ b/docker-compose.coolify.env.example@@ -0,0 +1,76 @@+# Cap Self-Hosting Environment Variables for Coolify+# Copy this file and fill in the values++# ===================+# REQUIRED VARIABLES+# ===================++# Public URL where Cap will be accessible (e.g., https://cap.yourdomain.com)+WEB_URL=https://cap.yourdomain.com++# 32-byte hex string for encrypting sensitive data+# Generate with: openssl rand -hex 32+DATABASE_ENCRYPTION_KEY=++# 32-byte secret for NextAuth sessions+# Generate with: openssl rand -hex 32+NEXTAUTH_SECRET=++# Secret for media server webhook authentication+# Generate with: openssl rand -hex 32+MEDIA_SERVER_WEBHOOK_SECRET=++# ===================+# DATABASE+# ===================++# MySQL password for the 'cap' user+MYSQL_PASSWORD=your-secure-mysql-password++# MySQL root password+MYSQL_ROOT_PASSWORD=your-secure-root-password++# ===================+# S3 / MinIO STORAGE+# ===================++# MinIO admin credentials+MINIO_ROOT_USER=capadmin+MINIO_ROOT_PASSWORD=your-secure-minio-password++# S3 bucket name+S3_BUCKET=cap++# Public URL for S3 access (should be accessible from the internet for video playback)+# For Coolify, this is typically your minio service URL+S3_PUBLIC_ENDPOINT=https://s3.yourdomain.com++# ===================+# EMAIL (OPTIONAL)+# ===================+# Without these, login links will appear in container logs++# Resend API key for sending emails+RESEND_API_KEY=++# Domain configured in Resend+RESEND_FROM_DOMAIN=++# ===================+# AI FEATURES (OPTIONAL)+# ===================++# For video transcription+DEEPGRAM_API_KEY=++# For AI summaries (Groq is preferred, OpenAI as fallback)+GROQ_API_KEY=+OPENAI_API_KEY=++# ===================+# OAUTH (OPTIONAL)+# ===================++# Google OAuth+GOOGLE_CLIENT_ID=+GOOGLE_CLIENT_SECRET=diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.ymlnew file mode 100644index 000000000..4b497ae2f--- /dev/null+++ b/docker-compose.coolify.yml@@ -0,0 +1,127 @@+name: cap++services:+ cap-web:+ container_name: cap-web+ image: ghcr.io/capsoftware/cap-web:latest+ restart: unless-stopped+ depends_on:+ mysql:+ condition: service_healthy+ minio:+ condition: service_healthy+ environment:+ DATABASE_URL: mysql://cap:${MYSQL_PASSWORD:-changeme}@mysql:3306/cap+ WEB_URL: ${WEB_URL:-http://localhost:3000}+ NEXTAUTH_URL: ${WEB_URL:-http://localhost:3000}+ DATABASE_ENCRYPTION_KEY: ${DATABASE_ENCRYPTION_KEY}+ NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}+ CAP_AWS_ACCESS_KEY: ${MINIO_ROOT_USER:-capadmin}+ CAP_AWS_SECRET_KEY: ${MINIO_ROOT_PASSWORD:-changeme123}+ CAP_AWS_BUCKET: ${S3_BUCKET:-cap}+ CAP_AWS_REGION: us-east-1+ S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://localhost:9000}+ S3_INTERNAL_ENDPOINT: http://minio:9000+ S3_PATH_STYLE: "true"+ RESEND_API_KEY: ${RESEND_API_KEY:-}+ RESEND_FROM_DOMAIN: ${RESEND_FROM_DOMAIN:-}+ MEDIA_SERVER_URL: http://media-server:3456+ MEDIA_SERVER_WEBHOOK_SECRET: ${MEDIA_SERVER_WEBHOOK_SECRET}+ MEDIA_SERVER_WEBHOOK_URL: http://cap-web:3000+ ports:+ - "3000:3000"+ healthcheck:+ test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 60s+ networks:+ - cap-network++ media-server:+ container_name: cap-media-server+ image: ghcr.io/capsoftware/cap-media-server:latest+ restart: unless-stopped+ environment:+ PORT: 3456+ healthcheck:+ test: ["CMD", "wget", "-qO-", "http://localhost:3456/health"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 10s+ networks:+ - cap-network++ mysql:+ container_name: cap-mysql+ image: mysql:8.0+ restart: unless-stopped+ environment:+ MYSQL_DATABASE: cap+ MYSQL_USER: cap+ MYSQL_PASSWORD: ${MYSQL_PASSWORD:-changeme}+ MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-rootchangeme}+ command:+ - --max_connections=1000+ - --default-authentication-plugin=mysql_native_password+ - --character-set-server=utf8mb4+ - --collation-server=utf8mb4_unicode_ci+ volumes:+ - cap-mysql-data:/var/lib/mysql+ healthcheck:+ test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "cap", "-p${MYSQL_PASSWORD:-changeme}"]+ interval: 10s+ timeout: 5s+ retries: 10+ start_period: 30s+ networks:+ - cap-network++ minio:+ container_name: cap-minio+ image: minio/minio:latest+ restart: unless-stopped+ command: server /data --console-address ":9001"+ environment:+ MINIO_ROOT_USER: ${MINIO_ROOT_USER:-capadmin}+ MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-changeme123}+ volumes:+ - cap-minio-data:/data+ healthcheck:+ test: ["CMD", "mc", "ready", "local"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 10s+ networks:+ - cap-network++ minio-setup:+ container_name: cap-minio-setup+ image: minio/mc:latest+ depends_on:+ minio:+ condition: service_healthy+ entrypoint: >+ /bin/sh -c "+ mc alias set capminio http://minio:9000 $${MINIO_ROOT_USER:-capadmin} $${MINIO_ROOT_PASSWORD:-changeme123};+ mc mb capminio/$${S3_BUCKET:-cap} --ignore-existing;+ mc anonymous set download capminio/$${S3_BUCKET:-cap};+ exit 0;+ "+ environment:+ MINIO_ROOT_USER: ${MINIO_ROOT_USER:-capadmin}+ MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-changeme123}+ S3_BUCKET: ${S3_BUCKET:-cap}+ networks:+ - cap-network++volumes:+ cap-mysql-data:+ cap-minio-data:++networks:+ cap-network:+ driver: bridgediff --git a/docker-compose.template.yml b/docker-compose.template.ymlindex 90d15049a..3de0a8854 100644--- a/docker-compose.template.yml+++ b/docker-compose.template.yml@@ -51,12 +51,20 @@ services:cap-media-server:container_name: cap-media-server- image: ghcr.io/capsoftware/cap-media-server:latest+ build:+ context: ./apps/media-server+ dockerfile: Dockerfile.standalonerestart: unless-stoppedenvironment:PORT: 3456ports:- "3456:3456"+ healthcheck:+ test: ["CMD", "wget", "-qO-", "http://localhost:3456/health"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 10s# Local S3 Strorageminio:diff --git a/docker-compose.yml b/docker-compose.ymlnew file mode 100644index 000000000..0aff7ed65--- /dev/null+++ b/docker-compose.yml@@ -0,0 +1,131 @@+name: cap++services:+ cap-web:+ container_name: cap-web+ image: ghcr.io/capsoftware/cap-web:latest+ restart: unless-stopped+ depends_on:+ mysql:+ condition: service_healthy+ minio:+ condition: service_healthy+ environment:+ DATABASE_URL: mysql://cap:${MYSQL_PASSWORD:-cap-local-pwd-123}@mysql:3306/cap+ WEB_URL: ${CAP_URL:-http://localhost:3000}+ NEXTAUTH_URL: ${CAP_URL:-http://localhost:3000}+ DATABASE_ENCRYPTION_KEY: ${DATABASE_ENCRYPTION_KEY:-0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef}+ NEXTAUTH_SECRET: ${NEXTAUTH_SECRET:-abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789}+ MEDIA_SERVER_WEBHOOK_SECRET: ${MEDIA_SERVER_WEBHOOK_SECRET:-fedcba9876543210fedcba9876543210fedcba9876543210fedcba9876543210}+ CAP_AWS_ACCESS_KEY: ${MINIO_ROOT_USER:-cap-admin}+ CAP_AWS_SECRET_KEY: ${MINIO_ROOT_PASSWORD:-cap-minio-pwd-456}+ CAP_AWS_BUCKET: cap+ CAP_AWS_REGION: us-east-1+ S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_URL:-http://localhost:9000}+ S3_INTERNAL_ENDPOINT: http://minio:9000+ S3_PATH_STYLE: "true"+ RESEND_API_KEY: ${RESEND_API_KEY:-}+ RESEND_FROM_DOMAIN: ${RESEND_FROM_DOMAIN:-}+ MEDIA_SERVER_URL: http://media-server:3456+ MEDIA_SERVER_WEBHOOK_URL: http://cap-web:3000+ ports:+ - "${CAP_PORT:-3000}:3000"+ healthcheck:+ test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 60s+ networks:+ - cap-network++ media-server:+ container_name: cap-media-server+ build:+ context: ./apps/media-server+ dockerfile: Dockerfile.standalone+ restart: unless-stopped+ environment:+ PORT: 3456+ healthcheck:+ test: ["CMD", "wget", "-qO-", "http://localhost:3456/health"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 10s+ networks:+ - cap-network++ mysql:+ container_name: cap-mysql+ image: mysql:8.0+ restart: unless-stopped+ environment:+ MYSQL_DATABASE: cap+ MYSQL_USER: cap+ MYSQL_PASSWORD: ${MYSQL_PASSWORD:-cap-local-pwd-123}+ MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-cap-root-pwd-789}+ command:+ - --max_connections=1000+ - --default-authentication-plugin=mysql_native_password+ - --character-set-server=utf8mb4+ - --collation-server=utf8mb4_unicode_ci+ volumes:+ - cap-mysql-data:/var/lib/mysql+ healthcheck:+ test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "cap", "-p${MYSQL_PASSWORD:-cap-local-pwd-123}"]+ interval: 10s+ timeout: 5s+ retries: 10+ start_period: 30s+ networks:+ - cap-network++ minio:+ container_name: cap-minio+ image: minio/minio:latest+ restart: unless-stopped+ command: server /data --console-address ":9001"+ environment:+ MINIO_ROOT_USER: ${MINIO_ROOT_USER:-cap-admin}+ MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-cap-minio-pwd-456}+ ports:+ - "${MINIO_PORT:-9000}:9000"+ - "${MINIO_CONSOLE_PORT:-9001}:9001"+ volumes:+ - cap-minio-data:/data+ healthcheck:+ test: ["CMD", "mc", "ready", "local"]+ interval: 30s+ timeout: 10s+ retries: 3+ start_period: 10s+ networks:+ - cap-network++ minio-setup:+ container_name: cap-minio-setup+ image: minio/mc:latest+ depends_on:+ minio:+ condition: service_healthy+ entrypoint: >+ /bin/sh -c "+ mc alias set capminio http://minio:9000 $${MINIO_ROOT_USER:-cap-admin} $${MINIO_ROOT_PASSWORD:-cap-minio-pwd-456};+ mc mb capminio/cap --ignore-existing;+ mc anonymous set download capminio/cap;+ exit 0;+ "+ environment:+ MINIO_ROOT_USER: ${MINIO_ROOT_USER:-cap-admin}+ MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-cap-minio-pwd-456}+ networks:+ - cap-network++volumes:+ cap-mysql-data:+ cap-minio-data:++networks:+ cap-network:+ driver: bridge