diff --git a/Dockerfile b/Dockerfile index 79ccf2200ff53d5102e257cacdacebc915c6873e..3f7e3b5864b5e2911ac78edc0e57b3c4eb075006 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,11 @@ COPY export.py /app/export.py COPY main.py /app/main.py COPY VERSION /app/VERISON -#Make a complete system update +#Make a complete system update. apt-utils is needed for configuring packages, so we need to install it RUN apt update RUN apt install apt-utils -y RUN apt upgrade -y +RUN apt clean #Install pipreqs. This tool is used to make the requirements.txt file automatic. Afterwards install them. RUN pip install pipreqs @@ -33,4 +34,4 @@ RUN mv __pycache__/export.* export.py RUN date > builddate.txt #everytime the container starts run main.py -ENTRYPOINT python3 main.py +ENTRYPOINT python3 main.py \ No newline at end of file diff --git a/docker-compose-build.yml b/docker-compose-build.yml index 9bfa5a3fac313dff2a5518b145bbc07c393d15b9..fea1ea6aa14e20093e01c9601787a33039c9f51a 100644 --- a/docker-compose-build.yml +++ b/docker-compose-build.yml @@ -15,7 +15,7 @@ services: - url_scheme=https #If you use a reverse Proxy with https set this to https - recaptcha_private= #Please enter here your private Key for google recaptcha - recaptcha_public= #Please enter here your public Key for google recaptcha - - host=127.0.0.1 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it. + - host=0.0.0.0 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it. volumes: url_shorter_db: \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1f9cb17ef37414abb7044b89b99cfda535b9b1ab..3f6fa49b17a0c17bebb3125b2c47480a3fbdd6e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: - url_scheme=https #If you use a reverse Proxy with https set this to https - recaptcha_private= #Please enter here your private Key for google recaptcha - recaptcha_public= #Please enter here your public Key for google recaptcha - - host=127.0.0.1 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it. + - host=0.0.0.0 #With this variable you can set the access ip range. 127.0.0.1 means you can only access it from the local network and 0.0.0.0 means everyone can access it. volumes: url_shorter_db: \ No newline at end of file