bpatrik / pigallery2

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)
http://bpatrik.github.io/pigallery2/
MIT License
1.76k stars 202 forks source link

how to change port pigallery2 #821

Open arr111 opened 8 months ago

arr111 commented 8 months ago

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:

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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