Files
arjion2/docker-compose.yml
2021-12-21 01:46:14 +01:00

44 líneas
854 B
YAML

version: "2.3"
services:
arjion2:
build: .
image: arjion2
hostname: arjion2
container_name: arjion2
restart: always
entrypoint:
- ./mvnw
- spring-boot:run
volumes:
- ./:/arjion2
ports:
- 8080:8080
networks:
arjion2:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.2-amd64
hostname: elasticsearch
container_name: elasticsearch
restart: always
environment:
- node.name=arjion2
- cluster.name=elasticsearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata:/usr/share/elasticsearch/data
expose:
- 9200
networks:
arjion2:
networks:
arjion2: