Skip to content

Commit 3c6699f

Browse files
committed
Docker
1 parent 11d04e1 commit 3c6699f

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ FROM richarvey/nginx-php-fpm:3.1.6 AS app
2626
ENV APP_ENV production
2727
ENV APP_DEBUG false
2828
ENV LOG_CHANNEL stderr
29-
ENV APP_KEY ${APP_KEY} # Will be provided by Render's environment
30-
31-
# Configure richarvey/nginx-php-fpm specific settings
32-
ENV SKIP_COMPOSER 1 # We run composer via the deploy script
33-
ENV WEBROOT /var/www/html/public # Laravel's public directory
29+
ENV APP_KEY ${APP_KEY}
30+
ENV SKIP_COMPOSER 1
31+
ENV WEBROOT /var/www/html/public
3432
ENV PHP_ERRORS_STDERR 1 # Send PHP errors to stderr for Docker logging
3533
ENV RUN_SCRIPTS 1 # Enable execution of scripts in /scripts directory
3634
ENV REAL_IP_HEADER 1 # If behind a proxy, trust X-Forwarded-For

render.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ services:
7777
- key: MAIL_FROM_NAME
7878
value: "${APP_NAME}"
7979

80-
# Start command: runs our deploy script, then starts the main services.
81-
# Assumes the base Docker image (ric_harvey/nginx-php-fpm) has /start.sh as its CMD,
82-
# which typically runs supervisord to manage Nginx and PHP-FPM.
83-
startCommand: "/usr/local/bin/deploy.sh && /start.sh"
80+
# Start command: The Docker image's CMD ["/start.sh"] will be used by default.
81+
# The /start.sh script from richarvey/nginx-php-fpm will execute our /scripts/00-laravel-deploy.sh
82+
# (because ENV RUN_SCRIPTS 1 is set) and then start Nginx & PHP-FPM.
83+
# Thus, no explicit startCommand override is needed here.
8484

8585
# Persistent disk for Laravel storage
8686
disk: # Valid per serverService schema, referencing "disk" definition

0 commit comments

Comments
 (0)