This commit is contained in:
ditiqi 2025-05-27 09:18:05 +08:00
parent 2ea9522940
commit 3f8d9b5023
2 changed files with 5 additions and 7 deletions

View File

@ -4,15 +4,15 @@ services:
container_name: elasticsearch
restart: always
ports:
- "9200:9200"
- "9300:9300"
- '9200:9200'
- '9300:9300'
networks:
- nice-net
environment:
- discovery.type=single-node
- xpack.security.enabled=true
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-nice_elastic_password}
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
volumes:
- type: volume
source: elasticsearch_data

View File

@ -12,9 +12,7 @@ services:
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY:-nice_minio_access}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-nice_minio_secret}
volumes:
- type: volume
source: storage_data
target: /data
- ./volumes/minio:/data
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']