Files
Stan-Ansible/compose.yaml
T
2025-12-24 04:44:23 +03:00

21 lines
469 B
YAML

services:
stan:
build: .
volumes:
- stan_data:/code/data
ports:
- "8813:8813"
restart: unless-stopped
environment:
STAN: ${STAN}
whiteids: ${whiteids}
rollback: ${rollback}
healthcheck:
test: [ "CMD-SHELL", "python3 -c 'import requests; r=requests.get(\"http://127.0.0.1:8813/healthz\"); exit(0 if r.status_code==200 else 1)'" ]
interval: 30s
timeout: 5s
retries: 3
volumes:
stan_data: