Added event composer
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose port 5000 for the Flask app
|
||||
EXPOSE 5000
|
||||
|
||||
# Set environment variables
|
||||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_RUN_HOST=0.0.0.0
|
||||
|
||||
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "--timeout", "120", "wsgi:wsgi_app"]
|
||||
|
||||
#RUN exec gunicorn -w 4 -b 0.0.0.0:5000 wsgi:wsgi_app
|
||||
|
||||
#RUN chmod +x entrypoint.sh
|
||||
#
|
||||
#ENTRYPOINT ["entrypoint.sh"]
|
||||
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
digifi-core:
|
||||
image: "registry.simbrellang.net/digifi/banktoproductcore:latest"
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
# build:
|
||||
# dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env.core
|
||||
ports:
|
||||
@@ -10,9 +10,10 @@ services:
|
||||
environment:
|
||||
- FLASK_APP=wsgi.py
|
||||
- FLASK_ENV=production
|
||||
#- DATABASE_URL=postgresql+psycopg2://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
|
||||
- SQLALCHEMY_DATABASE_URI_FULL="oracle+oracledb://FIRSTADVSTG:Pchanged_56789@10.2.110.30:1521/?service_name=firstadv"
|
||||
volumes:
|
||||
- .:/app
|
||||
#network_mode: "host" # Uses the host's network
|
||||
restart: always
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# echo "Running DB migrations..."
|
||||
# flask db migrate -m "Migration on $(date)"
|
||||
# flask db upgrade
|
||||
|
||||
echo "Starting Gunicorn server..."
|
||||
exec gunicorn -w 4 -b 0.0.0.0:5000 wsgi:wsgi_app
|
||||
@@ -0,0 +1,45 @@
|
||||
# Flask and Extensions
|
||||
Flask==2.3.3
|
||||
|
||||
# Database
|
||||
flask-sqlalchemy
|
||||
flask-migrate
|
||||
psycopg2-binary
|
||||
alembic
|
||||
oracledb
|
||||
|
||||
# Schema for validations
|
||||
Flask-Marshmallow==0.15.0
|
||||
marshmallow==3.19.0
|
||||
|
||||
# CORS
|
||||
Flask-Cors==3.0.10
|
||||
|
||||
# Deployment
|
||||
gunicorn
|
||||
|
||||
# Swagger
|
||||
flask-swagger-ui
|
||||
|
||||
|
||||
# Env
|
||||
python-dotenv
|
||||
|
||||
# Requests
|
||||
httpx
|
||||
|
||||
|
||||
# JWT
|
||||
flask-jwt-extended
|
||||
|
||||
|
||||
# Kafka
|
||||
confluent-kafka==1.9.2
|
||||
|
||||
|
||||
|
||||
python-dateutil
|
||||
|
||||
Flask-Mail==0.10.0
|
||||
pandas==2.1.3
|
||||
openpyxl==3.1.5
|
||||
Reference in New Issue
Block a user