Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements to minio config #83

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"__db_name": "{{ cookiecutter.project_slug | lower() }}_db",
"__db_user": "{{ cookiecutter.project_slug | lower() }}_user",
"__db_password": "{{ cookiecutter.project_slug | lower() }}_password",
"__minio_access_key": "minioadmin",
"__minio_secret_key": "minioadmin",
"__minio_access_key": "minioadminuser",
"__minio_secret_key": "minioadminpassword",
"__minio_bucket_name": "storage"
}
6 changes: 3 additions & 3 deletions {{ cookiecutter.project_slug }}/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ services:
- ${LOCAL_IP:-127.0.0.1}:${MINIO_LOCAL_PORT:-9000}:9000
- ${LOCAL_IP:-127.0.0.1}:${MINIO_CONSOLE_LOCAL_PORT:-9001}:9001
environment:
MINIO_ACCESS_KEY: {{ cookiecutter.__minio_access_key }}
MINIO_SECRET_KEY: {{ cookiecutter.__minio_secret_key }}
MINIO_ROOT_USER: {{ cookiecutter.__minio_access_key }}
MINIO_ROOT_PASSWORD: {{ cookiecutter.__minio_secret_key }}
volumes:
- minio-data:/data
command: [ "server", "--console-address", ":9001", "/data" ]
Expand All @@ -68,7 +68,7 @@ services:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 {{ cookiecutter.__minio_access_key }} {{ cookiecutter.__minio_secret_key }};
until (/usr/bin/mc alias set myminio http://minio:9000 {{ cookiecutter.__minio_access_key }} {{ cookiecutter.__minio_secret_key }}) do echo '...waiting...' && sleep 1; done;
/usr/bin/mc mb --ignore-existing myminio/{{ cookiecutter.__minio_bucket_name }};
/usr/bin/mc anonymous set download myminio/{{ cookiecutter.__minio_bucket_name }};
exit 0;
Expand Down