Skip to content

Commit b06dc07

Browse files
committed
clean up docker-compose
1 parent a7e3d6e commit b06dc07

File tree

1 file changed

+0
-84
lines changed

1 file changed

+0
-84
lines changed

docker-compose.yml

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,6 @@
11
version: '3.9'
22

33
services:
4-
app-elasticsearch:
5-
container_name: stac-fastapi-es
6-
image: stac-utils/stac-fastapi-es
7-
restart: always
8-
build:
9-
context: .
10-
dockerfile: dockerfiles/Dockerfile.dev.es
11-
environment:
12-
- APP_HOST=0.0.0.0
13-
- APP_PORT=8080
14-
- RELOAD=true
15-
- ENVIRONMENT=local
16-
- WEB_CONCURRENCY=10
17-
- ES_HOST=elasticsearch
18-
- ES_PORT=9200
19-
- ES_USE_SSL=false
20-
- ES_VERIFY_CERTS=false
21-
- BACKEND=elasticsearch
22-
ports:
23-
- "8080:8080"
24-
volumes:
25-
- ./stac_fastapi:/app/stac_fastapi
26-
- ./scripts:/app/scripts
27-
- ./esdata:/usr/share/elasticsearch/data
28-
depends_on:
29-
- elasticsearch
30-
command:
31-
bash -c "./scripts/wait-for-it-es.sh es-container:9200 && python -m stac_fastapi.elasticsearch.app"
32-
33-
app-opensearch:
34-
container_name: stac-fastapi-os
35-
image: stac-utils/stac-fastapi-os
36-
restart: always
37-
build:
38-
context: .
39-
dockerfile: dockerfiles/Dockerfile.dev.os
40-
environment:
41-
- APP_HOST=0.0.0.0
42-
- APP_PORT=8082
43-
- RELOAD=true
44-
- ENVIRONMENT=local
45-
- WEB_CONCURRENCY=10
46-
- ES_HOST=opensearch
47-
- ES_PORT=9202
48-
- ES_USE_SSL=false
49-
- ES_VERIFY_CERTS=false
50-
- BACKEND=opensearch
51-
ports:
52-
- "8082:8082"
53-
volumes:
54-
- ./stac_fastapi:/app/stac_fastapi
55-
- ./scripts:/app/scripts
56-
- ./osdata:/usr/share/opensearch/data
57-
depends_on:
58-
- opensearch
59-
command:
60-
bash -c "./scripts/wait-for-it-es.sh os-container:9202 && python -m stac_fastapi.opensearch.app"
61-
624
app-mongo:
635
container_name: stac-fastapi-mongo
646
image: stac-utils/stac-fastapi-mongo
@@ -106,29 +48,3 @@ services:
10648
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
10749
- ME_CONFIG_MONGODB_ADMINPASSWORD=example
10850
- ME_CONFIG_MONGODB_URL=mongodb://root:example@mongo:27017/
109-
110-
elasticsearch:
111-
container_name: es-container
112-
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-8.11.0}
113-
hostname: elasticsearch
114-
environment:
115-
ES_JAVA_OPTS: -Xms512m -Xmx1g
116-
volumes:
117-
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
118-
- ./elasticsearch/snapshots:/usr/share/elasticsearch/snapshots
119-
ports:
120-
- "9200:9200"
121-
122-
opensearch:
123-
container_name: os-container
124-
image: opensearchproject/opensearch:${OPENSEARCH_VERSION:-2.11.1}
125-
hostname: opensearch
126-
environment:
127-
- discovery.type=single-node
128-
- plugins.security.disabled=true
129-
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
130-
volumes:
131-
- ./opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
132-
- ./opensearch/snapshots:/usr/share/opensearch/snapshots
133-
ports:
134-
- "9202:9202"

0 commit comments

Comments
 (0)