Skip to content

Commit

Permalink
add: local minio to docker compose (#124)
Browse files Browse the repository at this point in the history
* add: local minio to docker compose

* update: separate minio into new docker compose file
  • Loading branch information
ntheanh201 authored Nov 26, 2024
1 parent c41209c commit 5a954a8
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ services:
- REDIS_HOST=superstreamer-redis
- REDIS_PORT=6379
- DATABASE_URI=postgresql://postgres:sprs@superstreamer-postgres/sprs
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_REGION=${S3_REGION}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET=${S3_BUCKET}

superstreamer-stitcher:
image: "superstreamerapp/stitcher:alpha"
Expand All @@ -40,6 +45,11 @@ services:
- REDIS_PORT=6379
- PUBLIC_API_ENDPOINT=http://localhost:52001
- PUBLIC_STITCHER_ENDPOINT=http://localhost:52002
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_REGION=${S3_REGION}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET=${S3_BUCKET}

superstreamer-artisan:
image: "superstreamerapp/artisan:alpha"
Expand All @@ -50,6 +60,11 @@ services:
environment:
- REDIS_HOST=superstreamer-redis
- REDIS_PORT=6379
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_REGION=${S3_REGION}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET=${S3_BUCKET}

superstreamer-redis:
image: redis/redis-stack-server:7.2.0-v6
Expand Down
34 changes: 34 additions & 0 deletions docker/minio/docker-compose.minio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: "3"

volumes:
superstreamer_minio_data:

services:
superstreamer-minio:
image: quay.io/minio/minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
ports:
- "9000:9000" # API
- "9001:9001" # Console
volumes:
- superstreamer_minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5

createbuckets:
image: minio/mc
depends_on:
superstreamer-minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set myminio http://superstreamer-minio:9000 minioadmin minioadmin;
mc mb myminio/superstreamer;
exit 0;
"
6 changes: 6 additions & 0 deletions docker/minio/minio.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# MinIO Configuration
S3_ENDPOINT=http://superstreamer-minio:9000
S3_REGION=us-east-1
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_BUCKET=superstreamer

0 comments on commit 5a954a8

Please sign in to comment.