Files
sa-charts/docker-swarm/minio/docker-compose.yml
marsal 29b9be27e2 apm
2023-08-08 13:41:03 +08:00

36 lines
687 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
networks:
default:
name: ${NAMESPACE}
external: true
services:
minio:
image: docker.io/bitnami/minio:2023
hostname: ${NAMESPACE}-minio
ports:
- '${NODE_PORT}:9000'
- '${NODE_PORT_1}:9001'
environment:
# 时区上海
TZ: Asia/Shanghai
# 管理后台用户名
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
# 管理后台密码最小8个字符
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
- 'data:/data'
deploy:
update_config:
order: start-first
placement:
constraints:
- node.labels.${NAMESPACE}_minio==1
volumes:
data:
driver: local