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 container_name: elasticsearch
restart: always restart: always
ports: ports:
- "9200:9200" - '9200:9200'
- "9300:9300" - '9300:9300'
networks: networks:
- nice-net - nice-net
environment: environment:
- discovery.type=single-node - discovery.type=single-node
- xpack.security.enabled=true - xpack.security.enabled=true
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-nice_elastic_password} - ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-nice_elastic_password}
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" - 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
volumes: volumes:
- type: volume - type: volume
source: elasticsearch_data source: elasticsearch_data
@ -29,4 +29,4 @@ volumes:
driver_opts: driver_opts:
type: none type: none
device: ${PWD}/volumes/elasticsearch device: ${PWD}/volumes/elasticsearch
o: bind o: bind

View File

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