docker-compose.yml 514 B

1234567891011121314151617181920212223
  1. version: '2.3'
  2. volumes:
  3. data:
  4. services:
  5. bitcoind:
  6. build: .
  7. image: fphammerle/bitcoin-core
  8. container_name: bitcoind
  9. volumes:
  10. - type: volume
  11. source: data
  12. target: /var/lib/bitcoin
  13. read_only: yes
  14. cap_drop: [ALL]
  15. security_opt: [no-new-privileges]
  16. cpus: 0.5
  17. # > Memory cgroup out of memory: Killed process 472277 (bitcoind) total-vm:403272kB, [...]
  18. mem_limit: 512m
  19. restart: unless-stopped
  20. # https://docs.docker.com/compose/compose-file/compose-file-v2/