-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 1.11 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
version: "3"
services:
oteapi:
image: ghcr.io/emmc-asbl/oteapi:${DOCKER_OTEAPI_VERSION:-latest}
ports:
- "${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 /dlite-cuds[dev]"
depends_on:
- redis
networks:
- otenet
volumes:
- "${PATH_TO_OTEAPI_CORE:-/dev/null}:/oteapi-core"
- "${PWD}:/dlite-cuds"
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"
redis:
image: redis:latest
volumes:
- redis-persist:/data
networks:
- otenet
sftp:
image: atmoz/sftp
volumes:
- sftp-storage:${HOME:-/home/foo}/download
command: ${USER:-foo}:${PASSWORD:-pass}:1001
networks:
- otenet
volumes:
redis-persist:
sftp-storage:
networks:
otenet: