-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
44 lines (43 loc) · 1.42 KB
/
docker-compose.override.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
services:
setup:
volumes:
- certs:/usr/share/elasticsearch/config/certs
- type: bind
source: ./volume/certs
target: /usr/share/public_cert
api:
build:
context: .
target: "base"
args:
VERSION: "${VERSION}"
command: sh -c "python3 -m pip install --prefix=/usr/local -e . && geoss_search create-elastic-index --with-schema /usr/local/geoss_search/elastic_schema.yml && exec uvicorn --host 0.0.0.0 --port 8000 geoss_search:app --reload"
volumes:
- type: bind
source: .
target: /usr/local/geoss_search/
- type: bind
source: ./logs
target: /var/local/geoss_search/logs
- type: bind
source: ${MODEL_PATH}
target: /var/local/model
read_only: true
- type: bind
source: ${INIT_DATA:-/dev/null}
target: /var/local/metadata/data/
read_only: true
- type: bind
source: ${INIT_DATA_SCHEMA:-/dev/null}
target: /var/local/metadata/schema.yml
read_only: true
working_dir: /usr/local/geoss_search/
environment:
- FASTAPI_ENV=development
worker:
volumes:
- type: bind
source: .
target: /usr/local/geoss_search
working_dir: /usr/local/geoss_search/geoss_search
command: sh -c "python3 -m pip install --prefix=/usr/local -e /usr/local/geoss_search && celery --app=tasks worker --loglevel=INFO --max-tasks-per-child=1"