Files
api/services/nginx/Dockerfile
T
Jeppe Bundgaard e449b25092 Add Certbot Service with Dockerfile and Adjust Nginx Config Path
- Added `services/certbot/Dockerfile` for Certbot configuration with Ubuntu 22.04.
- Set up volumes, dependencies, and command for automatic certificate renewal.
- Corrected Nginx configuration file path in `services/nginx/Dockerfile`.
2025-07-29 10:52:36 +02:00

14 lines
502 B
Docker

# NGINX Dockerfile
FROM nginx:1.27.3-alpine
# Import the configuration file for Nginx
COPY /nginx/nginx.conf /etc/nginx/nginx.conf
# Copy the contents of the /app directory to the /var/www/html directory (This is not necessary for this, since we are using PHP and Nginx in separate containers - And we are not using Nginx to serve static files)
#COPY /app /var/www/html
# Expose port 80 (HTTP) and 443 (HTTPS)
EXPOSE 80 443
# Start Nginx when the container starts
CMD ["nginx", "-g", "daemon off;"]