|
1 | 1 | version: '3.9'
|
2 | 2 |
|
3 | 3 | 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 |
| - |
62 | 4 | app-mongo:
|
63 | 5 | container_name: stac-fastapi-mongo
|
64 | 6 | image: stac-utils/stac-fastapi-mongo
|
@@ -106,29 +48,3 @@ services:
|
106 | 48 | - ME_CONFIG_MONGODB_ADMINUSERNAME=root
|
107 | 49 | - ME_CONFIG_MONGODB_ADMINPASSWORD=example
|
108 | 50 | - 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