-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
44 lines (40 loc) · 1.11 KB
/
compose.yaml
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:
oteapi:
image: ghcr.io/emmc-asbl/oteapi:${DOCKER_OTEAPI_VERSION:-latest}
ports:
- "${OTEAPI_PORT:-8080}:8080"
environment:
OTEAPI_REDIS_TYPE: redis
OTEAPI_REDIS_HOST: redis
OTEAPI_REDIS_PORT: 6379
OTEAPI_PREFIX: "${OTEAPI_PREFIX:-/api/v1}"
PATH_TO_OTEAPI_CORE:
OTEAPI_PLUGIN_PACKAGES: "-v -e /oteapi-optimade"
depends_on:
- redis
networks:
- otenet
volumes:
- "${PATH_TO_OTEAPI_CORE:-/dev/null}:/oteapi-core"
- "${PWD}:/oteapi-optimade"
entrypoint: |
/bin/bash -c "if [ \"${PATH_TO_OTEAPI_CORE}\" != \"/dev/null\" ] && [ -n \"${PATH_TO_OTEAPI_CORE}\" ]; then \
pip install -U --force-reinstall -e /oteapi-core; fi && ./entrypoint.sh --reload --debug --log-level debug"
stop_grace_period: 1s
redis:
image: redis:latest
volumes:
- redis-persist:/data
networks:
- otenet
optimade:
image: ghcr.io/materials-consortia/optimade:develop
ports:
- "${OPTIMADE_PORT:-5000}:5000"
networks:
- otenet
stop_grace_period: 1s
volumes:
redis-persist:
networks:
otenet: