- Ubuntu 24.04 Server on lab-mgmt1 (10.0.50.*)
- Docker 24+ and Docker Compose v2
- Phase 1 complete: FreeIPA, Keycloak, PostgreSQL, Redis, Traefik running
- DNS entry: snipeit.it-stack.lab → lab-mgmt1
CREATE USER snipeit_user WITH PASSWORD 'CHANGE_ME';
CREATE DATABASE snipeit_db OWNER snipeit_user;Create OIDC client $Module in realm it-stack:
- Client ID: $Module
- Valid redirect URI: https://snipeit.it-stack.lab/*
- Web origins: https://snipeit.it-stack.lab
Add to Traefik dynamic config:
http:
routers:
snipeit:
rule: Host(\$Module.it-stack.lab\)
service: snipeit
tls: {}
services:
snipeit:
loadBalancer:
servers:
- url: http://lab-mgmt1:80# Copy production compose to server
scp docker/docker-compose.production.yml admin@lab-mgmt1:~/
# Deploy
ssh admin@lab-mgmt1 'docker compose -f docker-compose.production.yml up -d'curl -I https://snipeit.it-stack.lab/health| Variable | Description | Default |
|---|---|---|
| DB_HOST | PostgreSQL host | lab-db1 |
| DB_PORT | PostgreSQL port | 5432 |
| REDIS_HOST | Redis host | lab-db1 |
| KEYCLOAK_URL | Keycloak base URL | https://lab-id1:8443 |
| KEYCLOAK_REALM | Keycloak realm | it-stack |