Skip to content

Commit 27e7827

Browse files
committedJun 8, 2024
First Commit
1 parent 1b9eae7 commit 27e7827

File tree

266 files changed

+38425
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+38425
-0
lines changed
 

‎.env

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
##**************************************************************************************
2+
##**************************************************************************************
3+
##**************************************************************************************
4+
##**************************************************************************************
5+
##************░█▀▀▄░▒█░░░░▒█▀▀█░▒█▀▀▀█░▒█▀▀▄░█▀▀▄░▒█▀▀▀█░▒█░▄▀░▒█▀▀▀░▀▀█▀▀**************
6+
##************▒█▄▄█░▒█░░░░▒█░▄▄░▒█░░▒█░▒█▀▀▄▒█▄▄█░░▀▀▀▄▄░▒█▀▄░░▒█▀▀▀░░▒█░░**************
7+
##************▒█░▒█░▒█▄▄█░▒█▄▄▀░▒█▄▄▄█░▒█▄▄█▒█░▒█░▒█▄▄▄█░▒█░▒█░▒█▄▄▄░░▒█░░**************
8+
##**************************************************************************************
9+
##************************** ▀▄▀▄▀▄GitHub - algobasket▄▀▄▀▄▀ ***************************
10+
##**************************************************************************************
11+
##******************************** Made By Algobasket ********************************
12+
##**************************************************************************************
13+
14+
# Environment type (local, docker, production)
15+
ENV_TYPE=docker
16+
17+
# MySQL database configuration
18+
MYSQL_DATABASE=oefhz # Name of the MySQL database
19+
MYSQL_USER=root # MySQL user
20+
MYSQL_PASSWORD=oefhz # MySQL user's password
21+
MYSQL_ROOT_PASSWORD=oefhz # MySQL root password
22+
MYSQL_HOST=db # Hostname or IP address of the MySQL server
23+
MYSQL_PORT=3306 # Port of the MySQL server
24+
25+
# Network configuration
26+
IP=192.168.0.1 # IP address of the host machine
27+
DOMAIN=efhz.lan # Domain name
28+
HOST_ENTRY=192.168.0.1 efhz.lan # Entry to add to the hosts file for local DNS resolution
29+

‎Dockerfile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use the official Python 3.8 image from the Docker Hub
2+
FROM python:3.8
3+
4+
# Set environment variables
5+
ENV PYTHONDONTWRITEBYTECODE 1
6+
ENV PYTHONUNBUFFERED 1
7+
8+
# Set the working directory
9+
WORKDIR /app
10+
11+
# Install system dependencies
12+
RUN apt-get update \
13+
&& apt-get install -y default-libmysqlclient-dev gcc \
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
# Install Python dependencies
17+
COPY requirements.txt /app/
18+
RUN pip install --upgrade pip \
19+
&& pip install -r requirements.txt
20+
21+
# Copy the Django project files
22+
COPY . /app/
23+
24+
# Copy the SQL file into the container's initialization directory
25+
# COPY oefhz.sql /docker-entrypoint-initdb.d/
26+
27+
EXPOSE 8000
28+
29+
# Run the Django development server
30+
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
31+

0 commit comments

Comments
 (0)
Please sign in to comment.