feat: Docker and systemd deployment files

This commit is contained in:
2026-03-17 19:09:06 -04:00
parent 686fc2b1e1
commit 2408a80489
3 changed files with 68 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
services:
app:
build: .
ports:
- "5000:5000"
volumes:
- ./config.yaml:/config/config.yaml:ro
- playbook_cache:/data/playbook_cache
- plugins:/data/plugins
environment:
- FABLEDNETMON_DATABASE__URL=postgresql+asyncpg://fablednetmon:fablednetmon@db/fablednetmon
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: fablednetmon
POSTGRES_PASSWORD: fablednetmon
POSTGRES_DB: fablednetmon
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fablednetmon"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
pgdata:
playbook_cache:
plugins: