-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (42 loc) · 911 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.9'
services:
sgic-search-api:
build: ./app
image: sgic-search-api
container_name: sgic-search-api
ports:
- '3030:80'
command: uvicorn main:app --host 0.0.0.0 --port 80 --proxy-headers
volumes:
- ./app:/usr/src/app
networks:
- elastic
env_file:
- .env
depends_on:
- sgic-es01
sgic-es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
container_name: sgic-es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
volumes:
data01:
driver: local
networks:
elastic:
driver: bridge