SaaS/docker-compose.yml
Aimpress Team bda23a773f 🚀 Initial commit: Aimpress AutomationHub
 Features:
- Modern SaaS automation platform
- Next.js 15 + TypeScript frontend
- Node.js + Express backend
- PostgreSQL database with full schema
- Docker Compose setup
- Admin panel with analytics
- Template marketplace (6 templates)
- Integrations hub (10+ services)
- Authentication & role-based access
- Responsive n8n-style design

🎯 Ready for demo and deployment

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-28 21:58:33 +01:00

104 lines
No EOL
2.3 KiB
YAML

services:
# PostgreSQL Database
postgres:
image: postgres:15
container_name: saas_postgres
environment:
POSTGRES_DB: saas_automation
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql
networks:
- saas_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 5
# n8n Workflow Automation
n8n:
image: n8nio/n8n
container_name: saas_n8n
ports:
- "5678:5678"
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=n8n
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=password
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=admin
- WEBHOOK_URL=http://localhost:5678/
- GENERIC_TIMEZONE=UTC
volumes:
- n8n_data:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
networks:
- saas_network
# Backend API Server
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: saas_backend
ports:
- "3001:3001"
environment:
- NODE_ENV=development
- PORT=3001
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=saas_automation
- DB_USER=postgres
- DB_PASSWORD=password
- JWT_SECRET=your_super_secret_jwt_key_change_this
- JWT_EXPIRES_IN=24h
- N8N_BASE_URL=http://n8n:5678
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
postgres:
condition: service_healthy
networks:
- saas_network
command: npm run dev
# Frontend Next.js Application
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: saas_frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:3001
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
depends_on:
- backend
networks:
- saas_network
command: npm run dev
volumes:
postgres_data:
n8n_data:
networks:
saas_network:
driver: bridge