Skip to content

Instantly share code, notes, and snippets.

@christopherarter
Created May 25, 2023 12:26
Show Gist options
  • Select an option

  • Save christopherarter/519c0acab9ebb4a4d72354633832ae24 to your computer and use it in GitHub Desktop.

Select an option

Save christopherarter/519c0acab9ebb4a4d72354633832ae24 to your computer and use it in GitHub Desktop.
Elasticvue docker-compose example
version: '3.8'
services:
elasticvue:
image: cars10/elasticvue
container_name: elasticvue
ports:
- "8080:8080"
restart: always
networks:
- app_network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
- "http.cors.allow-origin=http://localhost:8080"
- "http.cors.enabled=true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- app_network
restart: always
networks:
app_network:
volumes:
esdata1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment