version: '3.8' services: postgres: image: postgres:16-alpine container_name: docobo-postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgresql POSTGRES_DB: docobo ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 bot: build: context: . dockerfile: docker/Dockerfile.bot container_name: docobo-bot restart: unless-stopped depends_on: postgres: condition: service_healthy env_file: - .env environment: DATABASE_URL: postgresql://postgres:postgresql@postgres:5432/docobo volumes: - ./src:/app/src - ./prisma:/app/prisma webhooks: build: context: . dockerfile: docker/Dockerfile.webhooks container_name: docobo-webhooks restart: unless-stopped depends_on: postgres: condition: service_healthy env_file: - .env environment: DATABASE_URL: postgresql://postgres:postgresql@postgres:5432/docobo ports: - "3000:3000" volumes: - ./src:/app/src volumes: postgres_data: