summaryrefslogtreecommitdiff
path: root/docker-compose.example.yml
blob: 51b96aaefed760831deec6732a11400b1346a32e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
version: '3.7'

services:
  nano-bots:
    image: ruby:3.2.2-slim-bullseye
    command: sh -c "apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev libsodium-dev lua5.4-dev && gem install nano-bots -v 0.0.10 && bash"
    environment:
      OPENAI_API_ADDRESS: https://api.openai.com
      OPENAI_API_KEY: your-access-token
      NANO_BOTS_ENCRYPTION_PASSWORD: UNSAFE
      NANO_BOTS_END_USER: your-user
    volumes:
      - ./your-cartridges:/.local/share/nano-bots/cartridges
      - ./your-state:/.local/state/nano-bots