Skip to content

Commit

Permalink
build: refactor Docker Compose and MinIO setup
Browse files Browse the repository at this point in the history
- Update Docker Compose file version syntax from single to double quotes
- Pin MinIO Docker image to a specific release version
- Add quotes around port mappings in Docker Compose
- Expose an additional port `9001` for MinIO console
- Replace MinIO access and secret key environment variables with root user and password
- Add `--console-address` option to MinIO command to specify console address
- Update nginx-image-resizer image to use the latest version from GitHub Container Registry

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 30, 2024
1 parent ae5fb58 commit 6271b5e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: '3'
version: "3"

services:
minio:
image: minio/minio
image: quay.io/minio/minio:RELEASE.2024-01-29T03-56-32Z
container_name: minio
ports:
- 9000:9000
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
logging:
Expand All @@ -14,12 +15,12 @@ services:
max-size: "1k"
max-file: "3"
environment:
MINIO_ACCESS_KEY: YOUR_MINIO_ACCESS_KEY
MINIO_SECRET_KEY: YOUR_MINIO_SECRET_KEY
command: server /data
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: test123456
command: server /data --console-address ":9001"

image-resizer:
image: appleboy/nginx-image-resizer
image: ghcr.io/appleboy/nginx-image-resizer:latest
container_name: image-resizer
ports:
- 8002:80
Expand Down

0 comments on commit 6271b5e

Please sign in to comment.