Esoteric767

Bitmagnet docker compose config

Jan 12th, 2026
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. services:
  2. bitmagnet:
  3. container_name: bitmagnet
  4. image: ghcr.io/bitmagnet-io/bitmagnet:latest
  5. volumes:
  6. - ./config:/root/.config/bitmagnet
  7. - ./data/bitmagnet:/root/.local/share/bitmagnet
  8. restart: unless-stopped
  9. environment:
  10. - LOG_FILE_ROTATOR_ENABLED=true
  11. - POSTGRES_HOST=postgres
  12. - POSTGRES_PASSWORD=postgres
  13. - TMDB_API_KEY=
  14. - CLASSIFIER_DELETE_XXX=true
  15. - TZ=America/New_York
  16. - DHT_CRAWLER.SCALING_FACTOR=3
  17. network_mode: service:gluetun
  18. depends_on:
  19. postgres:
  20. condition: service_healthy
  21. gluetun:
  22. condition: service_healthy
  23. command:
  24. - worker
  25. - run
  26. - --all
  27.  
  28. gluetun:
  29. container_name: bitmagnet-gluetun
  30. image: qmcgaw/gluetun:latest
  31. cap_add:
  32. - NET_ADMIN
  33. ports:
  34. - "3333:3333"
  35. - "3334:3334/tcp"
  36. - "3334:3334/udp"
  37. environment:
  38. - VPN_SERVICE_PROVIDER=custom
  39. - VPN_TYPE=wireguard
  40. - WIREGUARD_ENDPOINT_IP=
  41. - WIREGUARD_ENDPOINT_PORT=
  42. - WIREGUARD_PUBLIC_KEY=
  43. - WIREGUARD_PRIVATE_KEY=
  44. - WIREGUARD_ADDRESSES=
  45. - DNS_ADDRESS=
  46. - TZ=
  47. devices:
  48. - /dev/net/tun:/dev/net/tun
  49. restart: unless-stopped
  50. extra_hosts:
  51. - "postgres:192.168.55.11"
  52. networks:
  53. bitmagnet:
  54. ipv4_address: 192.168.55.10
  55.  
  56. postgres:
  57. image: postgres:16-alpine
  58. container_name: bitmagnet-postgres
  59. mem_limit: 3g
  60. shm_size: 1g
  61. volumes:
  62. - ./data/postgres:/var/lib/postgresql/data
  63. networks:
  64. bitmagnet:
  65. ipv4_address: 192.168.55.11
  66. ports:
  67. - "5432:5432"
  68. restart: unless-stopped
  69. environment:
  70. - POSTGRES_PASSWORD=postgres
  71. - POSTGRES_DB=bitmagnet
  72. - PGUSER=postgres
  73. - TZ=
  74. command: >
  75. postgres
  76. -c shared_buffers=256MB
  77. -c wal_buffers=32MB
  78. -c work_mem=2MB
  79. -c maintenance_work_mem=64MB
  80. -c max_connections=20
  81. -c effective_cache_size=512MB
  82. -c synchronous_commit=off
  83. -c checkpoint_completion_target=0.9
  84. -c max_wal_size=2GB
  85. -c min_wal_size=512MB
  86. -c wal_compression=on
  87. -c checkpoint_timeout=15min
  88.  
  89. healthcheck:
  90. test: ["CMD-SHELL", "pg_isready"]
  91. interval: 10s
  92. start_period: 60s
  93.  
  94. networks:
  95. bitmagnet:
  96. driver: bridge
  97. ipam:
  98. driver: default
  99. config:
  100. - subnet: 192.168.55.0/24
  101. gateway: 192.168.55.1
  102.  
Advertisement
Add Comment
Please, Sign In to add comment