docker-compose.yml 956 B

1234567891011121314151617181920212223
  1. # The database on zeus.
  2. #
  3. # docker compose up -d bring it up
  4. # docker compose logs -f watch it
  5. #
  6. # The image is built by upgrade.sh from mulan's own binary, not from the
  7. # package - see the note in README.md. Compose only runs what that produced.
  8. services:
  9. smartbotic-db:
  10. image: smartbotic-database:current
  11. container_name: smartbotic-db
  12. restart: unless-stopped
  13. # A limit rather than a target. The database's own budget is
  14. # storage.memory.max_memory_mb in config.json, currently 8 GB; this is the
  15. # wall it cannot go through if that budget is ever wrong.
  16. mem_limit: 12g
  17. ports:
  18. - "9004:9004"
  19. volumes:
  20. # The encryption key lives inside the data directory. Data and key are
  21. # never separated - back them up together, move them together.
  22. - /data/smartbotic-db/data:/var/lib/smartbotic-database
  23. - /data/smartbotic-db/etc/config.json:/etc/smartbotic-database/config.json:ro