23 lines
527 B
YAML
23 lines
527 B
YAML
services:
|
|
magnit-api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: magnit-api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:${MAGNIT_API_PORT:-18080}:8080"
|
|
volumes:
|
|
- ./data:/data
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"python3",
|
|
"-c",
|
|
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health', timeout=5).read()",
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|