-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 1002 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (28 loc) · 1002 Bytes
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
services:
calliope-runner:
build:
context: .
dockerfile: Dockerfile
image: calliope-runner:latest
container_name: calliope-runner
ports:
- "5000:5000"
restart: unless-stopped
volumes:
- ./python:/app/python:ro
- ./public/templates:/app/public/templates:ro
# Override CMD for live-reload during development:
# command: ["uvicorn", "python.calliope_service:app", "--host", "0.0.0.0", "--port", "5000", "--reload"]
# Optional: mount a local solvers dir if you prefer bundled binaries over coinor-cbc
# volumes:
# - ./solvers/linux:/app/solvers/linux:ro
environment:
- CALLIOPE_SOLVER_DIR=
# Uncomment to point at a live OEO Tech Database API:
# - OEO_API_URL=http://host.docker.internal:8005
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s