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

how to change port pigallery2 #821

Open
arr111 opened this issue Jan 24, 2024 · 4 comments
Open

how to change port pigallery2 #821

arr111 opened this issue Jan 24, 2024 · 4 comments

Comments

@arr111
Copy link

arr111 commented Jan 24, 2024

can I change port 80 on pigallery2?
Screenshot_2024-01-24-15-52-42-269_com opera browser

my stack on below

version: '3'
services:
pigallery2:
image: bpatrik/pigallery2:latest
container_name: pigallery2
environment:
- NODE_ENV=production # set to 'debug' for full debug logging
# - NODE_OPTIONS=--enable-source-maps # enable source map support on the backend for development
volumes:
- /opt/pigallery2/config:/app/data/config # CHANGE ME
- "db-data:/app/data/db"
- /opt/pigallery2/images:/app/data/images:ro # CHANGE ME, ':ro' means read-only
- /mnt/sda1/test:/app/data/images:ro
- /opt/pigallery2/tmp:/app/data/tmp # CHANGE ME
ports:
- 2280:2280
restart: always

volumes:
db-data:

I have changed the port to 2280. Why does it not work when accessing port 2280? always returns to default 80.

@martadinata666
Copy link
Contributor

Docker-wise, application internal port doesn't need really to be bothered with, the one you want is 2280:80. You can change to 2280:2280 but you need to change pigallery port settings to 2280, the pigallery configuration itself to bind to 2280

@arr111
Copy link
Author

arr111 commented Jan 24, 2024

Docker-wise, application internal port doesn't need really to be bothered with, the one you want is 2280:80. You can change to 2280:2280 but you need to change pigallery port settings to 2280, the pigallery configuration itself to bind to 2280

thanks sir +62
thats worked
finally i can change the port to 2280

@arr111
Copy link
Author

arr111 commented Jan 24, 2024

Docker-wise, application internal port doesn't need really to be bothered with, the one you want is 2280:80. You can change to 2280:2280 but you need to change pigallery port settings to 2280, the pigallery configuration itself to bind to 2280

Screenshot_2024-01-24-19-12-59-187_com opera browser
this is normal?? why my container pigallery2 status changed from healty to unhealty
Screenshot_2024-01-24-19-14-11-750_com opera browser

@martadinata666
Copy link
Contributor

martadinata666 commented Jan 24, 2024

Yes it expected as healthcheck probing on port 80 rather than 2280.

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

2 participants