docker-compose.yml 694 B

1234567891011121314151617181920212223242526
  1. version: '2.2'
  2. networks:
  3. default:
  4. driver_opts:
  5. com.docker.network.bridge.name: loc-guess-tlgrm
  6. services:
  7. bot:
  8. build: .
  9. image: docker.io/fphammerle/location-guessing-game-telegram-bot
  10. container_name: location_guessing_game_telegram_bot
  11. environment:
  12. TELEGRAM_TOKEN_PATH: /telegram-token
  13. WIKIMAP_EXPORT_PATH: /wikimap-export.json
  14. read_only: true
  15. volumes:
  16. - /file/containing/api-token:/telegram-token:ro
  17. - /wikimap/export.json:/wikimap-export.json:ro
  18. cap_drop: [all]
  19. security_opt: [no-new-privileges]
  20. # docker-compose >=2.2,<3
  21. cpus: 0.4
  22. mem_limit: 128M
  23. # https://docs.docker.com/compose/compose-file/compose-file-v2/