mirror of
https://github.com/OHV-IT/collabrix.git
synced 2025-12-15 08:38:36 +01:00
- Complete chat application similar to Microsoft Teams - Code snippet library with syntax highlighting - Real-time messaging with WebSockets - File upload with Office integration - Department-based permissions - Dark/Light theme support - Production deployment with SSL/Reverse Proxy - Docker containerization - PostgreSQL database with SQLModel ORM
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# db:
|
|
# image: postgres:17
|
|
# environment:
|
|
# POSTGRES_USER: teamchat
|
|
# POSTGRES_PASSWORD: teamchat_secret
|
|
# POSTGRES_DB: teamchat
|
|
# ports:
|
|
# - "5432:5432"
|
|
# volumes:
|
|
# - postgres_data:/var/lib/postgresql/data
|
|
# healthcheck:
|
|
# test: ["CMD-SHELL", "pg_isready -U teamchat"]
|
|
# interval: 5s
|
|
# timeout: 5s
|
|
# retries: 5
|
|
|
|
backend:
|
|
build: ./backend
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
volumes:
|
|
- ./backend:/app
|
|
- uploads:/app/uploads
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DATABASE_URL=postgresql://postgres:your_password@192.168.0.19:5432/OfficeDesk
|
|
- TEST_DATABASE_URL=postgresql://postgres:your_password@192.168.0.19:5432/OfficeDesk_Test
|
|
# depends_on:
|
|
# db:
|
|
# condition: service_healthy
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
command: npm run dev
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
ports:
|
|
- "5173:5173"
|
|
environment:
|
|
- VITE_API_URL=http://localhost:8000
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
# postgres_data:
|
|
uploads:
|