Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- bitmagnet:
- container_name: bitmagnet
- image: ghcr.io/bitmagnet-io/bitmagnet:latest
- volumes:
- - ./config:/root/.config/bitmagnet
- - ./data/bitmagnet:/root/.local/share/bitmagnet
- restart: unless-stopped
- environment:
- - LOG_FILE_ROTATOR_ENABLED=true
- - POSTGRES_HOST=postgres
- - POSTGRES_PASSWORD=postgres
- - TMDB_API_KEY=
- - CLASSIFIER_DELETE_XXX=true
- - TZ=America/New_York
- - DHT_CRAWLER.SCALING_FACTOR=3
- network_mode: service:gluetun
- depends_on:
- postgres:
- condition: service_healthy
- gluetun:
- condition: service_healthy
- command:
- - worker
- - run
- - --all
- gluetun:
- container_name: bitmagnet-gluetun
- image: qmcgaw/gluetun:latest
- cap_add:
- - NET_ADMIN
- ports:
- - "3333:3333"
- - "3334:3334/tcp"
- - "3334:3334/udp"
- environment:
- - VPN_SERVICE_PROVIDER=custom
- - VPN_TYPE=wireguard
- - WIREGUARD_ENDPOINT_IP=
- - WIREGUARD_ENDPOINT_PORT=
- - WIREGUARD_PUBLIC_KEY=
- - WIREGUARD_PRIVATE_KEY=
- - WIREGUARD_ADDRESSES=
- - DNS_ADDRESS=
- - TZ=
- devices:
- - /dev/net/tun:/dev/net/tun
- restart: unless-stopped
- extra_hosts:
- - "postgres:192.168.55.11"
- networks:
- bitmagnet:
- ipv4_address: 192.168.55.10
- postgres:
- image: postgres:16-alpine
- container_name: bitmagnet-postgres
- mem_limit: 3g
- shm_size: 1g
- volumes:
- - ./data/postgres:/var/lib/postgresql/data
- networks:
- bitmagnet:
- ipv4_address: 192.168.55.11
- ports:
- - "5432:5432"
- restart: unless-stopped
- environment:
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=bitmagnet
- - PGUSER=postgres
- - TZ=
- command: >
- postgres
- -c shared_buffers=256MB
- -c wal_buffers=32MB
- -c work_mem=2MB
- -c maintenance_work_mem=64MB
- -c max_connections=20
- -c effective_cache_size=512MB
- -c synchronous_commit=off
- -c checkpoint_completion_target=0.9
- -c max_wal_size=2GB
- -c min_wal_size=512MB
- -c wal_compression=on
- -c checkpoint_timeout=15min
- healthcheck:
- test: ["CMD-SHELL", "pg_isready"]
- interval: 10s
- start_period: 60s
- networks:
- bitmagnet:
- driver: bridge
- ipam:
- driver: default
- config:
- - subnet: 192.168.55.0/24
- gateway: 192.168.55.1
Advertisement
Add Comment
Please, Sign In to add comment