mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
2026.9
This commit is contained in:
1 parent
140d51f248
commit
58a77e473b
4 files changed
+12
No files matched your search
@@ -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()"]
|
||||
@@ -0,0 +1 @@
|
||||
Here you will find ideas for potential future updates.
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="gunicorn-flask"
|
||||
description="Gunicorn server for Flask app"
|
||||
command="/usr/bin/gunicorn"
|
||||
command_args="--workers 1 --bind 127.0.0.1:8000 'app:create_app()' --preload"
|
||||
pidfile="/run/${name}.pid"
|
||||
directory="/opt/fipam"
|
||||
command_background="yes"
|
||||
|
||||
---------------------------------------------> /etc/init.d/flask-ipam
|
||||
@@ -0,0 +1,13 @@
|
||||
name: Flask-IPAM
|
||||
services:
|
||||
flask-ipam:
|
||||
image: fipam_docker
|
||||
container_name: flask-ipam
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- flask-ipam:/fipam/instance
|
||||
|
||||
volumes:
|
||||
flask-ipam:
|
||||
Reference in new issue
Block a user