appstore-1panel/apps/minio/2024-10-29/docker-compose.yml
Meng Sen 95d7d2a646 修复应用 Minio
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2024-10-31 10:53:59 +08:00

35 lines
948 B
YAML

networks:
1panel-network:
external: true
services:
minio:
image: minio/minio:RELEASE.2024-10-29T16-01-48Z.fips
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
- ${PANEL_APP_PORT_API}:${MINIO_API_PORT}
command: server --console-address :${PANEL_APP_PORT_HTTP} --address :${MINIO_API_PORT} --json
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
extra_hosts:
- ${MINIO_SERVER_HOST:-localhost}:127.0.0.1
volumes:
- ${MINIO_ROOT_PATH}/certs:/root/.minio/certs
- ${MINIO_ROOT_PATH}/data:/data
logging:
options:
max-size: "5M"
max-file: "10"
driver: json-file
environment:
- MINIO_VOLUMES=/data
- MINIO_API_ROOT_ACCESS=on
- MINIO_BROWSER_REDIRECT=true