mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
* ♻️ Refacto minio template - add random password generation - forward port 9000 and expose 9001 through traefik - add some comments to add some volume setting info * 🔧 Remove domain config for port 9000 - 🐛 Fix redirection loop by adding MINIO_BROWSER_REDIRECT=false
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
version: "3.8"
|
|
services:
|
|
minio:
|
|
image: minio/minio
|
|
volumes:
|
|
# by default, the MinIO container will use a volume named minio-data
|
|
# to store its data. This volume is created automatically by Docker.
|
|
# If you want to use a local directory instead, uncomment the line below
|
|
# and specify the path to your local directory.
|
|
# (be warned that ../files is pointing to a subdirectory of /etc/dokploy/compose in dokploy)
|
|
# - ../files/minio-data:/data
|
|
# if you uncommented the line above, comment the line below and the volumes section at the end
|
|
- minio-data:/data
|
|
environment:
|
|
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
|
|
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
|
|
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
|
|
command: server /data --console-address ":9001"
|
|
ports:
|
|
# by default, the MinIO container will use port 9000 to expose its API
|
|
# and port 9001 to expose its web console
|
|
# minio requires port to be specified when making a request to the API
|
|
- 9000:9000
|
|
expose:
|
|
- 9001
|
|
|
|
# comment the line below if you specified a local directory in the volumes section of the minio service
|
|
volumes:
|
|
minio-data:
|