Docker deployment Realised

This commit is contained in:
Josako
2024-06-26 12:02:14 +02:00
parent 348bdf2c15
commit 7a1b51dd0c
2494 changed files with 7329 additions and 172135 deletions

27
docker/nginx/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
# Use the official Nginx image as the base image
FROM nginx:latest
# Copy the custom Nginx configuration file into the container
COPY ../../nginx/nginx.conf /etc/nginx/nginx.conf
# Copy the mime.types file into the container
COPY ../../nginx/mime.types /etc/nginx/mime.types
# Copy static & public files
RUN mkdir -p /etc/nginx/static /etc/nginx/public
COPY ../../nginx/static /etc/nginx/static
COPY ../../nginx/public /etc/nginx/public
# Copy site-specific configurations
RUN mkdir -p /etc/nginx/sites-enabled
COPY ../../nginx/sites-enabled/ /etc/nginx/sites-enabled/
# Ensure log directory exists
RUN mkdir -p /var/log/nginx
# Expose the necessary port
EXPOSE 80
EXPOSE 8080
# Start Nginx when the container starts
# CMD ["nginx", "-g", "daemon off;"]