997 B
997 B
Deployment Documentation
The application is designed to be deployed as a Docker container behind a Caddy reverse proxy.
Docker Setup
Dockerfile
- Based on
python:3.11-slim. - Installs
iputils-pingfor network diagnostics. - Uses
uvicornto serve the FastAPI app.
docker-compose.yml
- Defines the
monitor-appservice. - Connects to
caddy_networkfor external access. - Passes SSH credentials via environment variables.
Caddy Configuration
Add this to your Caddyfile:
asf.monitor.nabd-co.com {
reverse_proxy monitor-app:8000
}
Troubleshooting
KeyError: 'ContainerConfig'
This error occurs when using docker-compose V1 with images built by newer Docker versions.
Solution: Use docker compose (V2) or disable BuildKit:
DOCKER_BUILDKIT=0 COMPOSE_DOCKER_CLI_BUILD=0 docker-compose up -d --build
SSH Connectivity
Ensure the cloud server can reach the target IPs/hostnames on the specified ports (49152 and 2222).