version: '3.8'

services:
  notion-ai:
    image: notion-ai
    build:
      context: .
    ports:
      - "3002:3000"
    env_file:
      - .env.local

  db:
    image: postgres:latest
    restart: always
    environment:
      POSTGRES_DB: mydatabase
      POSTGRES_USER: myuser
      POSTGRES_PASSWORD: mypassword
    volumes:
      - pg_data:/var/lib/postgresql/data

volumes:
  pg_data:
