mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
Working on a Docker Container
This commit is contained in:
1 parent
621b2b681a
commit
55aaeae1da
4 files changed
+16
-2
No files matched your search
+12
@@ -0,0 +1,12 @@
|
|||||||
|
FROM python:3.13.2-alpine3.21
|
||||||
|
WORKDIR /fipam
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
COPY app /fipam/app
|
||||||
|
COPY instance /fipam/instance
|
||||||
|
ENV APP_HOME=/fipam
|
||||||
|
ENV PYTHONPATH=${APP_HOME}
|
||||||
|
ENV PATH="$PATH:${APP_HOME}/.local/bin"
|
||||||
|
ENV GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000 --workers=2 --preload"
|
||||||
|
EXPOSE 5000
|
||||||
|
ENTRYPOINT ["gunicorn","app:create_app()"]
|
||||||
+2
-2
@@ -10,11 +10,11 @@ app_maintenance = False
|
|||||||
app_name = 'takeus-ipam'
|
app_name = 'takeus-ipam'
|
||||||
app_version = 'V1.2'
|
app_version = 'V1.2'
|
||||||
app_release_date = '02/2025'
|
app_release_date = '02/2025'
|
||||||
app_url = "http://127.0.0.1"
|
app_url = "http://0.0.0.0"
|
||||||
|
|
||||||
class Configuration:
|
class Configuration:
|
||||||
# openssl rand -hex 32
|
# openssl rand -hex 32
|
||||||
SECRET_KEY = 'change_me'
|
SECRET_KEY = '619b2920234c8c472b2a7121c82a5d62ea86a083dc00e2bc9b09b695f00641ea'
|
||||||
# DB CONFIG
|
# DB CONFIG
|
||||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
wheel
|
||||||
|
gunicorn
|
||||||
Flask
|
Flask
|
||||||
Flask-Login
|
Flask-Login
|
||||||
Flask-SQLAlchemy
|
Flask-SQLAlchemy
|
||||||
|
|||||||
Reference in new issue
Block a user