version: '3.9' services: postgres: image: pgvector/pgvector:pg16 container_name: aiteacher-postgres-native environment: POSTGRES_DB: aiteacher POSTGRES_USER: aiteacher POSTGRES_PASSWORD: aiteacher ports: - "5432:5432" volumes: - pgdata_native:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U aiteacher -d aiteacher"] interval: 10s timeout: 5s retries: 5 backend: image: ai-teacher-backend:latest container_name: aiteacher-backend-native env_file: - .env environment: SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/aiteacher SPRING_DATASOURCE_USERNAME: aiteacher SPRING_DATASOURCE_PASSWORD: aiteacher ports: - "8080:8080" depends_on: postgres: condition: service_healthy volumes: pgdata_native: