version: '3.8' services: web: build: . ports: - "10335:5000" volumes: - ./uploads:/app/uploads env_file: - stack.env depends_on: db: condition: service_healthy db: image: postgres:13 environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=1253 - POSTGRES_DB=docupulse volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 volumes: postgres_data: uploads: