-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.38 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
48
49
50
51
services:
# vapi:
# build:
# context: .
# dockerfile: dippy_validation_api/vapi.Dockerfile
# args:
# - DEBUG=${DEBUG:-false}
# # command: ["tail","-f","/dev/null"]
# command: >
# sh -c "if [ \"$$DEBUG\" = \"true\" ]; then
# python -m jurigged -v /app/dippy_validation_api/validation_api.py --queues 0 --main-api-port 7001;
# else
# python validation_api.py --queues 0 --main-api-port 7001;
# fi"
# environment:
# DATABASE_URL: postgresql://vapi_user:vapi_password@postgres:5432/vapi_db
# DEBUG: ${DEBUG:-false}
# # Jurigged needs this to work in Docker
# PYTHONUNBUFFERED: 1
# volumes:
# - ./dippy_validation_api:/app/dippy_validation_api
# - ./scoring:/app/scoring
# - ./utilities:/app/utilities
# - ./template:/app/template
# - ./model:/app/model
# - ./constants:/app/constants
# ports:
# - "7001:7001"
# env_file:
# - .env
# depends_on:
# postgres:
# condition: service_healthy
vsapi:
image: vsapi:v0.0.1
ports:
- "8777:8777"
command: ["python", "validation_api.py", "--main-api-port", "8777"]
env_file:
- .env
# model_q:
# build:
# context: .
# dockerfile: modelq.Dockerfile
# command: ["python","model_queue.py","--subtensor.network", "test"]
# env_file:
# - .env