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.
11 lines
276 B
Bash
Executable File
11 lines
276 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check for the environment parameter
|
|
if [ "$1" = "local" ]; then
|
|
COMPOSE_FILES="-f docker-compose.yml -f docker-compose.local.yml"
|
|
else
|
|
COMPOSE_FILES="-f docker-compose.yml"
|
|
fi
|
|
|
|
# Stop and remove the Docker Compose services
|
|
docker-compose $COMPOSE_FILES down |