Skip to content

Commit

Permalink
add docker-compose file using MinIO
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Jun 10, 2022
1 parent 00cfdb0 commit 753174d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ max_upload_size: 1TB
servers:
- bucket: gose-uploads

endpoint: s3.0l.de
endpoint: localhost:9000
region: s3

path_style: true
no_ssl: false
no_ssl: true

# Or via standard AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY env vars
access_key: ""
Expand Down
46 changes: 46 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
version: "3.7"
services:

minio:
image: minio/minio:RELEASE.2022-06-03T01-40-53Z.fips
command: server /mnt/data --console-address ":9001"
ports:
- 9000:9000 # API
- 9001:9001 # Webinterface
environment:
MINIO_ROOT_USER: "admin-user" # changeme!
MINIO_ROOT_PASSWORD: "admin-pass" # changeme!
MINIO_SERVER_URL: "http://localhost:9000"
MINIO_SITE_REGION: "s3"
volumes:
- minio-data:/mnt/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"]
interval: 30s
timeout: 20s
retries: 3

gose:
image: ghcr.io/stv0g/gose:v0.4.0
build:
context: .
ports:
- 8080:8080
environment:
GOSE_LISTEN: ":8080"
GOSE_BASE_URL: "http://localhost:8080"
GOSE_BUCKET: "gose-uploads"
GOSE_ENDPOINT: "minio:9000"
GOSE_REGION: "s3"
GOSE_PATH_STYLE: "true"
GOSE_NO_SSL: "true"
GOSE_ACCESS_KEY: "admin-user" # changeme!
GOSE_SECRET_KEY: "admin-pass" # changeme!
GOSE_MAX_UPLOAD_SIZE: "50GB"
GOSE_PART_SIZE: "5MB"
depends_on:
- minio

volumes:
minio-data:

0 comments on commit 753174d

Please sign in to comment.