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

allow user to set docker hostname for pgsql, redis, transmission and jacket #278

Open
yodog opened this issue Jan 13, 2024 · 0 comments
Open

Comments

@yodog
Copy link

yodog commented Jan 13, 2024

i've been using the *arr suite for a few years, and only today i found out about bobarr.

i already have transmission, redis and postgres containers running, and i would like to use them instead of running new containers for bobarr.

is there an envionment variable to set the hostnames?

i tried POSTGRES_HOST=bobarr-postgres but the api logs still complain about not finding the postgres hostname.

arr_bobarr-api.1.tcu0ljjl69ct@1037u.local    | 2024-01-13 14:10:40.772 [error] 
TypeOrmModule - Unable to connect to the database. Retrying (5)... - 
{"stack":["Error: getaddrinfo ENOTFOUND postgres\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)"]}

my docker setup:

x-bobarr-env: 
  environment: &bobarrenv
    - PGID=1000
    - PUID=1000
    - TZ=America/Sao_Paulo
    - LIBRARY_MOVIES_FOLDER_NAME=filmes
    - LIBRARY_TV_SHOWS_FOLDER_NAME=series
    - POSTGRES_HOST=bobarr-postgres
    - POSTGRES_DB=bobarr
    - POSTGRES_PASSWORD=bobarr
    - POSTGRES_USER=bobarr
    - REDIS_HOST=bobarr-redis
    - REDIS_PASSWORD=bobarr
    - TRANSMISSION_HOST=transmission

  bobarr-api:
    image: iam4x/bobarr-api:latest
    environment: *bobarrenv
    networks: [ intercontainers ]
    ports: [ 4000:4000 ]
    command: yarn start:prod
    volumes:
      - /data/media:/usr/library

  bobarr-web:
    image: iam4x/bobarr-web:latest
    environment: *bobarrenv
    networks: [ intercontainers ]
    ports: [ 3000:3000 ]
    command: yarn start
@yodog yodog changed the title allow the user to set docker hostname for pgsql, redis, transmission and jacket allow user to set docker hostname for pgsql, redis, transmission and jacket Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant