Skip to content

Instantly share code, notes, and snippets.

@defrindr
Created April 16, 2025 16:35
Show Gist options
  • Save defrindr/f1c962a873d2605189a9ab17ef8c749e to your computer and use it in GitHub Desktop.
Save defrindr/f1c962a873d2605189a9ab17ef8c749e to your computer and use it in GitHub Desktop.
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- 5431:5432
adminer:
image: adminer
restart: always
ports:
- 8080:8080
redis:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
minio:
image: minio/minio
restart: unless-stopped
environment:
- MINIO_ROOT_USER=access-key
- MINIO_ROOT_PASSWORD=secret-key
- MINIO_ACCESS_KEY=access-key
- MINIO_SECRET_KEY=secret-key
volumes:
- ./minio_dir:/data
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 10;
/usr/bin/mc alias set myminio http://minio:9000 access-key secret-key;
/usr/bin/mc mb myminio/silog;
/usr/bin/mc anonymous set public myminio/silog;
exit 0;
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment