Skip to content

Commit

Permalink
feat: allow port to be set with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Oct 27, 2024
1 parent cb0659d commit c1fe643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ RUN dos2unix /etc/cron.d/cronjobs && \
echo 'pm.max_children = 15' >> /usr/local/etc/php-fpm.d/zz-docker.conf && \
echo 'pm.max_requests = 500' >> /usr/local/etc/php-fpm.d/zz-docker.conf

# Expose port 80 for Nginx
EXPOSE 80
# Default port
ENV PORT 80

ARG SOFTWARE_VERSION=1.20.0
# Expose the port
EXPOSE ${PORT}

# Start both PHP-FPM, Nginx
CMD ["sh", "-c", "/var/www/html/startup.sh"]
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v2.32.0";
$version = "v2.33.0";
?>
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ http {
keepalive_timeout 65;

server {
listen 80;
listen ${PORT};
server_name localhost;

location / {
Expand Down

0 comments on commit c1fe643

Please sign in to comment.