services:
  pocketbase:
    build:
      context: .
      dockerfile: Dockerfile.pocketbase
    restart: unless-stopped
    volumes:
      - pb_data:/pb/pb_data
    expose:
      - 8090

  frontend:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        VITE_POCKETBASE_URL: ${VITE_POCKETBASE_URL:-http://127.0.0.1:8090}
        VITE_SHOW_DEMO_LOGIN: ${VITE_SHOW_DEMO_LOGIN:-true}
    restart: unless-stopped
    expose:
      - 80
    depends_on:
      - pocketbase

volumes:
  pb_data:
