Skip to content
Snippets Groups Projects
Commit 75a55c28 authored by izacarias's avatar izacarias
Browse files

Configuring docker compose for production environment

parent c967d5b6
No related branches found
No related tags found
No related merge requests found
# IBI Network for communication between the IBI-API and ElasticSearch
networks:
ibi-network:
driver: bridge
name: ibi-network
services:
ibi-api:
build: .
container_name: ibi-api
ports:
- "7777:7777"
depends_on:
es01:
condition: service_healthy
networks:
- ibi-network
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2
container_name: es01
restart: always
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 5s
timeout: 10s
retries: 5
networks:
- ibi-network
\ No newline at end of file
version: '3'
# IBI Network for communication between the IBI-API and ElasticSearch
networks:
ibi-network:
......@@ -9,7 +7,6 @@ networks:
services:
ibi-api:
container_name: ibi-api
build: .
ports:
- "7777:7777"
depends_on:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment