version: "3"

networks:
  learning-platform:
    external: true

volumes:
  pb_data:

services:
  learning-platform:
    image: git.labs.respellion.tech/respellion/learning-platform/learning-platform:latest
    container_name: learning-platform
    restart: unless-stopped
    environment:
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
    networks:
      - learning-platform

  pocketbase-learning:
    image: ghcr.io/muchobien/pocketbase:latest
    container_name: pocketbase-learning
    restart: unless-stopped
    working_dir: /pb
    command: ["serve", "--http=0.0.0.0:8090", "--dir=/pb/pb_data", "--migrationsDir=/pb/pb_migrations"]
    volumes:
      - pb_data:/pb/pb_data
      - ./pb_migrations:/pb/pb_migrations
    networks:
      - learning-platform
