Files
2026-07-31 14:19:58 +02:00

65 lines
1.9 KiB
YAML

services:
database:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: patchmon_db
POSTGRES_USER: patchmon_user
POSTGRES_PASSWORD: GQ22vbfGmcJC6ny3
volumes:
- /opt/patchmon/postgres_data:/var/lib/postgresql/data
healthcheck:
test:
- CMD-SHELL
- pg_isready -U patchmon_user -d patchmon_db
interval: 3s
timeout: 5s
retries: 7
redis:
image: redis:7-alpine
restart: unless-stopped
command: redis-server --requirepass M9zQvGGE5yUJufMG # CHANGE THIS TO YOUR REDIS PASSWORD
volumes:
- /opt/patchmon/redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "--no-auth-warning", "-a", "your-redis-password-here", "ping"] # CHANGE THIS TO YOUR REDIS PASSWORD
interval: 3s
timeout: 5s
retries: 7
backend:
image: ghcr.io/patchmon/patchmon-backend:latest
restart: unless-stopped
# See PatchMon Docker README for additional environment variables and configuration instructions
environment:
LOG_LEVEL: info
DATABASE_URL: postgresql://patchmon_user:GQ22vbfGmcJC6ny3@database:5432/patchmon_db
JWT_SECRET: 81093711ad0855badb44907c05b035e865d74d905e4c9b0d6b8b2cd076fa535ab8c54035e4e8aa0ad5f548ee357906bc3ac668a31003baeb1c5f7f5d10033e6d
SERVER_PROTOCOL: https
SERVER_HOST: patchmon.realm.local
SERVER_PORT: 443
CORS_ORIGIN: https://patchmon.realm.local
# Redis Configuration
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: M9zQvGGE5yUJufMG # CHANGE THIS TO YOUR REDIS PASSWORD
REDIS_DB: 0
volumes:
- /opt/patchmon/agent_files:/app/agents
depends_on:
database:
condition: service_healthy
frontend:
image: ghcr.io/patchmon/patchmon-frontend:latest
restart: unless-stopped
ports:
- 3000:3000
depends_on:
backend:
condition: service_healthy
networks:
patchmon: {}