docker-compose.yml 676 B

12345678910111213141516171819202122232425262728293031
  1. services:
  2. wbb:
  3. build: .
  4. restart: always
  5. environment:
  6. - PYTHONUNBUFFERED=1
  7. - MONGO_URL=mongodb://mongo:27017/wbb
  8. - ADMIN_WEB_HOST=0.0.0.0
  9. - BOT_PROFILES_PATH=/wbb/runtime/bot_profiles.json
  10. depends_on:
  11. mongo:
  12. condition: service_healthy
  13. ports:
  14. - "127.0.0.1:8088:8088"
  15. volumes:
  16. - ./sessions:/wbb/sessions
  17. - ./runtime:/wbb/runtime
  18. mongo:
  19. image: mongo:7
  20. restart: always
  21. volumes:
  22. - mongo-data:/data/db
  23. healthcheck:
  24. test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
  25. interval: 5s
  26. timeout: 3s
  27. retries: 20
  28. volumes:
  29. mongo-data: