Docker: change port to 8000.

Allows to run as non-root.
This commit is contained in:
rasmus 2020-12-23 08:02:40 +02:00
parent 49c973707f
commit ac5f2fe3e4
2 changed files with 2 additions and 2 deletions

View File

@ -10,4 +10,4 @@ COPY . .
EXPOSE 80
# port 80, one worker, 210s timeout, from prom.py file.
CMD [ "gunicorn", "-b :80", "-w 1", "-t 210", "prom:app" ]
CMD [ "gunicorn", "-b :8000", "-w 1", "-t 210", "prom:app" ]

View File

@ -5,6 +5,6 @@ services:
volumes:
- './id_rsa:/bss/.ssh/id_rsa'
#ports:
# - '8000:80' # EXPOSING TO THE INTERWEBZ IS A BAD IDEA. USE DOCKER NETWORKS OR A REVERSE PROXY INSTEAD.
# - '8000:8000' # EXPOSING TO THE INTERWEBZ IS A BAD IDEA. USE DOCKER NETWORKS OR A REVERSE PROXY INSTEAD.
env_file:
- bss.env # SSH_HOSTNAME=172.16.16.16