Some checks failed
CI Pipeline / Rust Format Check (pull_request) Successful in 4s
CI Pipeline / Clippy Lints (pull_request) Successful in 52s
CI Pipeline / Rust Unit Tests (pull_request) Failing after 1m23s
CI Pipeline / Security Audit (pull_request) Successful in 6s
CI Pipeline / Frontend Lint & Type Check (pull_request) Successful in 16s
CI Pipeline / Build .deb & Release (pull_request) Has been skipped
- Stage 1 (Rust): Replace rust:1.85-bookworm with ubuntu:24.04 + rustup stable - Stage 2 (Frontend): Replace node:20-bookworm-slim with ubuntu:24.04 + NodeSource Node.js 20 - Stage 3 (Runtime): Already ubuntu:24.04 with libssl3t64 (verified correct) - docker-compose: Change postgres:16-bookworm to postgres:16 (standard image) This aligns Docker builds with the project's target OS (Ubuntu 24.04) and matches the CI environment which runs on ubuntu-latest (24.04).
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
# =============================================================================
|
|
# Linux Patch Manager — Docker Compose Deployment
|
|
# =============================================================================
|
|
# Usage:
|
|
# cp .env.example .env # Edit DB_PASSWORD
|
|
# docker compose up -d
|
|
# =============================================================================
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: patch_manager
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: patch_manager
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U patch_manager -d patch_manager"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 10s
|
|
networks:
|
|
- patch-manager-net
|
|
|
|
app:
|
|
image: ghcr.io/draco-lunaris/linux-patch-manager:${TAG:-latest}
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ports:
|
|
- "443:443"
|
|
environment:
|
|
DATABASE_URL: postgres://patch_manager:${DB_PASSWORD}@db:5432/patch_manager
|
|
PATCH_MANAGER_CONFIG: /etc/patch-manager/config.toml
|
|
volumes:
|
|
- pm-config:/etc/patch-manager
|
|
- pm-logs:/var/log/patch-manager
|
|
- pm-data:/opt/patch-manager
|
|
networks:
|
|
- patch-manager-net
|
|
|
|
volumes:
|
|
pgdata:
|
|
driver: local
|
|
pm-config:
|
|
driver: local
|
|
pm-logs:
|
|
driver: local
|
|
pm-data:
|
|
driver: local
|
|
|
|
networks:
|
|
patch-manager-net:
|
|
driver: bridge
|