Refactored the application's dockerization and added new services
This commit involves significant changes to the application's infrastructure. It refactors the application into two separate services: 'nibiru-auth-api' and 'nibiru-webhook-receiver'. Each service has its corresponding Dockerfile, Nginx & PHP-FPM configuration. It also provides a separate Nginx configuration for handling requests for each service. New environment files, start and stop scripts are introduced to facilitate local and production deployments.
This commit is contained in:
10
nibiru-auth-api/fpm/entrypoint.sh
Executable file
10
nibiru-auth-api/fpm/entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Set the PHP-FPM listen port from the environment variable or default to 9000
|
||||
export FPM_VIRTUAL_PORT=${FPM_VIRTUAL_PORT:-9000}
|
||||
|
||||
# Substitute environment variables in the PHP-FPM configuration template
|
||||
envsubst '$FPM_VIRTUAL_PORT' < /usr/local/etc/php-fpm.d/zz-docker.conf.template > /usr/local/etc/php-fpm.d/zz-docker.conf
|
||||
|
||||
# Start PHP-FPM
|
||||
php-fpm
|
||||
Reference in New Issue
Block a user