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

Fix compose file #18

Closed
GraphicHealer opened this issue Apr 27, 2022 · 9 comments · Fixed by #22
Closed

Fix compose file #18

GraphicHealer opened this issue Apr 27, 2022 · 9 comments · Fixed by #22

Comments

@GraphicHealer
Copy link

I had to edit the compose file to fix an issue of Traefik not allowing me to access the webpage from another machine.
I would get a 404 Page Not Found error uintill i did the fix below.

  1. Replace all instances of papermerge.local with ${HOSTNAME} in docker-compose.yml
  2. add HOSTNAME=<hostname of PC> to .env
@GraphicHealer
Copy link
Author

You know, I just had the thought to instead of make it a .env value, to get the hostname from the PC itself. That might be easier.

@ciur
Copy link
Member

ciur commented Apr 27, 2022

@gljones2001 I would gladly accept your pull request with above mentioned enhancement

@GraphicHealer
Copy link
Author

oh. I didn't have a pull request. I just manually fixed it by using the web editor in Portainer.

@GraphicHealer
Copy link
Author

Honestly it was such a simple edit I thought you could just do it through the github web editor. I didn't want to do a whole pull request just for like 2 lines of code.

@GraphicHealer
Copy link
Author

GraphicHealer commented Apr 27, 2022

image
image
There are the places I changed it.

@ciur ciur linked a pull request May 2, 2022 that will close this issue
@ciur ciur closed this as completed in #22 May 2, 2022
ciur added a commit that referenced this issue May 2, 2022
fix docker-compose file: parametrize hostname ( closes #18 )
@GraphicHealer
Copy link
Author

Awesome dude. Thanks. I'll try it out.

@GraphicHealer
Copy link
Author

GraphicHealer commented May 3, 2022

Hey, you might want to update the setup page in the docs.
https://docs.papermerge.io/Installation/docker.html

and the portainer page.

@GraphicHealer
Copy link
Author

Also, Noticed a descrepicy in the .env on the readme.

APP_IMAGE=ghcr.io/papermerge/papermerge
APP_TAG=latest
PAPERMERGE_JS_IMAGE=ghcr.io/papermerge/papermerge.js
PAPERMERGE_JS_TAG=latest

HOSTNAME=docman

DB_USER=postgres
DB_NAME=postgres
DB_PASSWORD=postgres
DB_HOST=db
DB_PORT=5432

REDIS_HOST=redis
REDIS_PORT=6379

ES_HOSTS=es
ES_PORT=9200

SECRET_KEY=alsdkalsdjlaksdj90823423!KLKJLkjkjlkjlKLPOgrwqna

SUPERUSER_USERNAME=admin
SUPERUSER_EMAIL=admin@mail.com
SUPERUSER_PASSWORD=password

Notice the ghcr.io/ that is not on the readme.

@ciur
Copy link
Member

ciur commented May 3, 2022

good catch

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

Successfully merging a pull request may close this issue.

2 participants