docker-compose.yml 727 B

1234567891011121314151617181920212223242526272829303132
  1. version: '2.3'
  2. volumes:
  3. data:
  4. services:
  5. bitcoin-qt:
  6. build: .
  7. image: fphammerle/bitcoin-core-qt
  8. container_name: bitcoin_qt
  9. environment:
  10. DISPLAY: ':0'
  11. LIBGL_DEBUG: verbose
  12. volumes:
  13. - type: volume
  14. source: data
  15. target: /var/lib/bitcoin
  16. - type: bind
  17. # Xephyr -resizeable :8333
  18. source: /tmp/.X11-unix/X8333
  19. target: /tmp/.X11-unix/X0
  20. read_only: yes
  21. #ports:
  22. #- '8333:8333'
  23. cap_drop: [ALL]
  24. security_opt: [no-new-privileges]
  25. cpus: 0.5
  26. # > Memory cgroup out of memory: Killed process 81421 (bitcoind) total-vm:1379624kB, [...]
  27. mem_limit: 2g
  28. restart: on-failure
  29. # https://docs.docker.com/compose/compose-file/compose-file-v2/