-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.8 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
52
53
54
55
56
version: "3.7"
services:
redis:
image: redis:3.2
command: ["redis-server", "--appendonly", "yes"]
restart: always
expose:
- "6379"
volumes:
# This will store the redis data locally in ./data/redis so it will be saved between container runs
- ./data/redis:/data
healthcheck:
test: redis-cli ping
interval: 5s
retries: 5
start_period: 30s
adaptive_scheduler:
build:
context: .
target: dev
image: adaptive-scheduler
links:
- redis:redis
environment:
# Note that when using the default docker network on linux, 172.17.0.1 works
# for localhost of the host network, but for mac you will need to use
# `host.docker.internal` instead to point to localhost of the host network.
- OPENTSDB_HOSTNAME=opentsdb-path
- OPENTSDB_PYTHON_METRICS_TEST_MODE=True
- OBSERVATION_PORTAL_URL=http://172.17.0.1:8000
- OBSERVATION_PORTAL_API_TOKEN={staff_obs_portal_api_token}
- CONFIGDB_URL=http://172.17.0.1:7000
- DOWNTIME_URL=http://172.17.0.1:7500/
- REDIS_URL=redis://redis
- TELESCOPE_CLASSES=1m0,2m0
- SAVE_PICKLE_INPUT_FILES=False
- SAVE_JSON_OUTPUT_FILES=False
- TIME_BETWEEN_RUNS=300
- KERNEL_TIMELIMIT=1200
- MODEL_HORIZON=2
- MODEL_SLICESIZE=300
- NO_WEATHER=True
- KERNEL_ALGORITHM=SCIP
volumes:
# Edit these volume maps to wherever you want to store the log files and input/output data sets
- ./data:/app/data/
- ./logs:/app/logs/
# This command can be uncommented to run the unit tests instead of the scheduler itself
command: pytest --ignore=tests/requires_third_party/test_fullscheduler_gurobi.py -rA
#command: adaptive-scheduler
depends_on:
redis:
condition: service_healthy