This guide is designed for Systems Administrators, DevOps Engineers, and Site Reliability Engineers (SRE) responsible for provisioning, monitoring, and maintaining the GOAL ecosystem.
GOAL runs on modern containerized micro-stacks orchestrated via Docker Compose or Kubernetes:
| Service | Technology | Role |
|---|---|---|
| API Runtime | Lumen 11 / PHP 8.2 FPM + Nginx | Serves REST endpoints and admin backends. |
| Core Database | PostgreSQL 15 / 16 | Primary relational storage for transactions, master data, and auth. |
| Telemetry DB | PostgreSQL 16 + TimescaleDB 2.x + PostGIS | High-volume GPS coordinates and device metrics hypertable. |
| Message Broker | RabbitMQ / Redis | Asynchronous event queues, background jobs, and GPS coordinate buffers. |
| WebSockets | Soketi / Pusher Protocol | Real-time push notifications and dashboard event broadcasting. |
| Documentation Stack | Wiki.js 2.5 + PostgreSQL 15 | Centralized developer, sysadmin, and integrator documentation. See Path-Based Access Control & Keycloak SSO. |
All services are configured through environment variables (.env). Key operational settings:
APP_ENV=production
APP_DEBUG=false
APP_URL=https://api.goal.dsroma.info
# Primary PostgreSQL Connection
DB_CONNECTION=pgsql
DB_HOST=goal-postgres
DB_PORT=5432
DB_DATABASE=goal_db
DB_USERNAME=goal_user
DB_PASSWORD=secret_password
# TimescaleDB Telemetry Connection
TIMESCALE_HOST=goal-timescale
TIMESCALE_PORT=5432
TIMESCALE_DATABASE=goal_telemetry
# Queue Broker Configuration
QUEUE_CONNECTION=redis
REDIS_HOST=goal-redis
REDIS_PORT=6379
The database should be backed up using compressed pg_dump with automated retention pruning:
# Manual snapshot
docker exec -t goal-db pg_dump -U goal_user goal_db | gzip > ./backups/db-$(date +%Y%m%d).sql.gz
# Restore snapshot
gunzip -c ./backups/db-20261006.sql.gz | docker exec -i goal-db psql -U goal_user -d goal_db
Monitor application availability with automated probes:
GET https://<host>/healthz -> HTTP 200 OKGET http://<host>:9020/healthz -> HTTP 200 OK# Check service health
docker compose ps
# Inspect live container logs
docker compose logs -f --tail=100 api-runtime
# Restart background queue workers
docker compose restart queue-worker