Complete implementation ready for Coolify: - Node.js 22 + Fastify + socket.io backend - PostgreSQL 16 + Redis 7 services - Docker Compose configuration - Deployment scripts and documentation Co-Authored-By: Paperclip <noreply@paperclip.ing>
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
# AgentHub Phase 1 LAN Deployment — Build Local
|
|
# Pour déploiement direct sur serveur LAN sans registry Forgejo
|
|
# Usage: docker compose -f compose.lan-direct.yml up -d
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: agenthub-app
|
|
env_file: .env.lan
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
ports:
|
|
- '3000:3000'
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/healthz"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: agenthub-postgres
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB:-agenthub}
|
|
POSTGRES_USER: ${POSTGRES_USER:-agenthub}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U agenthub']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: agenthub-redis
|
|
command: ['redis-server', '--save', '60', '100', '--appendonly', 'yes']
|
|
volumes:
|
|
- redisdata:/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pgdata:
|
|
redisdata:
|