improve docker-compose.yml

This commit is contained in:
Vri 🌈 2023-05-05 18:40:57 +02:00
parent f57d0d4c2a
commit bef450a80c
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -5,14 +5,11 @@ services:
volumes: volumes:
- .:/app/ - .:/app/
ports: ports:
- "3000:3000" - "127.0.0.1:3000:3000"
links:
- elasticsearch
environment: environment:
- ELASTICSEARCH_URL=${ELASTICSEARCH_URL:-http://elasticsearch:9200} - ELASTICSEARCH_URL=${ELASTICSEARCH_URL:-http://elasticsearch:9200}
- APPLICATION_HOST=${APPLICATION_HOST:-localhost} - APPLICATION_HOST=${APPLICATION_HOST:-localhost}
- SHARED_IMPORT_SECRET=$SHARED_IMPORT_SECRET - SHARED_IMPORT_SECRET=$SHARED_IMPORT_SECRET
#command: ls -lah /home/srm/
elasticsearch: elasticsearch:
user: elasticsearch user: elasticsearch
build: ./docker/elasticsearch build: ./docker/elasticsearch
@ -21,7 +18,7 @@ services:
- bootstrap.memory_lock=true - bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports: ports:
- "9215:9200" - "127.0.0.1:9215:9200"
volumes: volumes:
- ${ESDATA:-esdata}:/usr/share/elasticsearch/data //read, write and execute - ${ESDATA:-esdata}:/usr/share/elasticsearch/data //read, write and execute
- ./docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml - ./docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
@ -29,9 +26,7 @@ services:
elastichq: elastichq:
image: elastichq/elasticsearch-hq image: elastichq/elasticsearch-hq
ports: ports:
- "5000:5000" - "127.0.0.1:5000:5000"
links:
- elasticsearch
volumes: volumes:
esdata: esdata: