services:
  surrealdb:
    image: surrealdb/surrealdb:v2.3.10
    environment:
      SURREAL_USER: ${SURREAL_USER}
      SURREAL_PASS: ${SURREAL_PASS}
    volumes:
      - db_data:/usr/app/data
    user: root
    command: start rocksdb:/db_data/data.db
    pull_policy: always
    expose:
      - "8000"

  surrealist:
    image: surrealdb/surrealist:latest
    pull_policy: always
    expose:
      - "80"

volumes:
  db_data: {}
