forked from cedadev/stac-fastapi-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.42 KB
/
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
46
47
48
49
50
51
version: "3.8"
services:
app-elasticsearch:
container_name: stac-fastapi-elasticsearch
image: cedadev/stac-fastapi-elasticsearch
build:
context: .
dockerfile: Dockerfile
environment:
- STAC_ELASTICSEARCH_SETTINGS=flexi_settings.settings
- DJANGO_FLEXI_SETTINGS_ROOT=/app/conf/settings.py
- APP_HOST=0.0.0.0
- APP_PORT=8081
ports:
- 8081:8081
volumes:
- ./stac_fastapi:/app/stac_fastapi
- ./scripts:/app/scripts
- ./conf:/app/conf
- ./tests:/app/tests
depends_on:
- database
command:
bash -c "./scripts/wait-for-it.sh database:9200 -t 60 && python -m stac_fastapi.elasticsearch.app"
database:
container_name: stac-elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.2
environment:
- node.name=es01
- cluster.name=stac-cluster
- discovery.type=single-node
- network.host=0.0.0.0
- http.port=9200
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
loadsample-elasticsearch:
image: cedadev/stac-fastapi-elasticsearch
volumes:
- ./stac_fastapi:/app/stac_fastapi
- ./scripts:/app/scripts
command:
bash -c "./scripts/wait-for-it.sh database:9200 -t 60 && python /app/scripts/ingest_test_data.py --host http://database:9200"
depends_on:
- database
- app-elasticsearch
networks:
default:
name: stac-fastapi-elasticsearch-network