Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a spot for config.yml in your minimum docker-compose.yml #286

Closed
2 tasks done
EntityinArray opened this issue Jun 25, 2024 · 1 comment · Fixed by #323
Closed
2 tasks done

Make a spot for config.yml in your minimum docker-compose.yml #286

EntityinArray opened this issue Jun 25, 2024 · 1 comment · Fixed by #323
Labels
enhancement New feature or request

Comments

@EntityinArray
Copy link

EntityinArray commented Jun 25, 2024

  • I have checked the existing issues to avoid duplicates
  • I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Is your feature request related to a problem? Please describe

Wiki says that configuration is done with config.yml in current directory.
In your minimum docker-compose.yml in Installation, bitmagnet service has no pwd.
The only current way to configure dockerized bitmagnet out of the box is through env vars

Describe the solution you'd like

Add a volume for storing the config.yml file in your docker-compose.yml

@EntityinArray EntityinArray added the enhancement New feature or request label Jun 25, 2024
@EntityinArray
Copy link
Author

EntityinArray commented Jun 25, 2024

For anyone facing the same issue, here's my docker-compose.yml

services:
  bitmagnet:
    image: ghcr.io/bitmagnet-io/bitmagnet:latest
    container_name: bitmagnet
    volumes:
      #
      # Mount config, make this ootb
      #
      - ./config:/root/.config/bitmagnet
    ports:
      # API and WebUI port:
      - "3333:3333"
      # BitTorrent ports:
      - "3334:3334/tcp"
      - "3334:3334/udp"
    restart: unless-stopped
    environment:
      - POSTGRES_HOST=postgres
      - POSTGRES_PASSWORD=postgres
    #      - TMDB_API_KEY=your_api_key
    command:
      - worker
      - run
      - --keys=http_server
      - --keys=queue_server
      # disable the next line to run without DHT crawler
      - --keys=dht_crawler
    depends_on:
      postgres:
        condition: service_healthy

  postgres:
    image: postgres:16-alpine
    container_name: bitmagnet-postgres
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    #    ports:
    #      - "5432:5432" Expose this port if you'd like to dig around in the database
    restart: unless-stopped
    environment:
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=bitmagnet
      - PGUSER=postgres
    shm_size: 1g
    healthcheck:
      test:
        - CMD-SHELL
        - pg_isready
      start_period: 20s
      interval: 10s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant