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

Documentation updates - how to use existing Paperless-NGX instance & change ports #248

Open
maelstrm-code opened this issue Feb 17, 2025 · 0 comments

Comments

@maelstrm-code
Copy link

Thought I'd share the results of some extended tinkering in case it helps others or is useful for the documentation.

Note: I'm still getting familiar with docker so let me know if there's a better way and/or if I've done something dumb.

  1. If you have an existing paperless-ngx container then comment out the lines in services
services:
#  paperless-ngx:
#    image: ghcr.io/paperless-ngx/paperless-ngx:latest
    # ... (your existing paperless-ngx config)
  1. If the port name is already taken you need to update the ports line with the new port, and also add a LISTEN_INTERFACE line with the interface:port you want it to listen on. You might want to use the interface IP rather than 0.0.0.0 which is everything I believe.

Example

 paperless-gpt:
    environment:
      LISTEN_INTERFACE: "0.0.0.0:8810"
    ports:
      - "8810:8810"
  1. If you are running a custom docker network and want to have your paperless-gpt docker image talk to others eg an external paperless & redis, then add a networks section to the compose file like the one below. I found it worked best to specify it before services, and then you need to add networks line referring to it under port.

Example

networks:
  mynetworkname:
    name: mynetworkname
    external: true

services:
#(...)
    ports:
      - "8080:8080"
    networks:
      - mynetworkname
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