updating the workflow
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 21s

This commit is contained in:
vickytechkey 2026-08-09 21:31:29 +05:30
parent 24aca5769a
commit 374b3f0cf3
2 changed files with 0 additions and 81 deletions

View file

@ -1,29 +0,0 @@
FROM python:3.12-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
default-libmysqlclient-dev \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . /app/
# Expose port
EXPOSE 8000
# Run gunicorn
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000"]

View file

@ -1,52 +0,0 @@
version: '3.8'
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: localdevpassword
MYSQL_DATABASE: seller_central
MYSQL_USER: seller_user
MYSQL_PASSWORD: seller_pass
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-plocaldevpassword"]
interval: 10s
timeout: 5s
retries: 5
web:
build: .
ports:
- "8080:8000"
volumes:
- .:/app
- ./logs:/app/logs # persists log files on the host
environment:
- DEBUG=1
# MySQL connection (local dev)
- DB_ENGINE=django.db.backends.mysql
- DB_NAME=seller_central
- DB_USER=seller_user
- DB_PASSWORD=seller_pass
- DB_HOST=db
- DB_PORT=3306
depends_on:
db:
condition: service_healthy
restart: always
# Forward Gunicorn access + error logs to /app/logs
command: >
sh -c "python manage.py migrate --noinput &&
gunicorn config.wsgi:application
--bind 0.0.0.0:8000
--workers 2
--access-logfile /app/logs/gunicorn-access.log
--error-logfile /app/logs/gunicorn-error.log
--log-level info
--capture-output"
volumes:
mysql_data: