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: