mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-21 07:05:22 +02:00
restart: unless-stopped is a Docker restart policy that automatically restarts a container if it stops due to an error or Docker daemon restart
33 lines
1.5 KiB
YAML
33 lines
1.5 KiB
YAML
services:
|
|
minio:
|
|
# after RELEASE.2025-04-22T22-12-26Z, minio removed most of the admin UI, if you want to use the admin UI, uncomment the line below
|
|
# image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
|
# if you uncommented the line above, comment the line below
|
|
image: minio/minio
|
|
restart: unless-stopped
|
|
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:
|