Files
nibiru-framework-agent/docker-compose.local.yml
stephan.kasdorf 2572c28648 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.
2024-05-31 15:13:10 +02:00

50 lines
1.4 KiB
YAML

version: '3.3'
services:
nibiru-auth-api:
env_file:
- .env-local
environment:
- APPLICATION_ENV=${APPLICATION_ENV}
- VIRTUAL_HOST=${NIBIRU_AUTH_VIRTUAL_HOST}
- VIRTUAL_PORT=${FPM_VIRTUAL_PORT}
- NIBIRU_AUTH_VIRTUAL_HOST=${NIBIRU_AUTH_VIRTUAL_HOST}
- NIBIRU_AUTH_HOST=${NIBIRU_AUTH_HOST}
- TZ=${TZ}
nibiru-auth-api-nginx:
env_file:
- .env-local
environment:
- APPLICATION_ENV=${APPLICATION_ENV}
- VIRTUAL_HOST=${NIBIRU_AUTH_VIRTUAL_HOST}
- VIRTUAL_PORT=${NGINX_PROXY_VIRTUAL_PORT}
- NIBIRU_AUTH_VIRTUAL_HOST=${NIBIRU_AUTH_VIRTUAL_HOST}
- NIBIRU_AUTH_HOST=${NIBIRU_AUTH_HOST}
- TZ=${TZ}
nibiru-webhook-receiver:
env_file:
- .env-local
environment:
- APPLICATION_ENV=${APPLICATION_ENV}
- VIRTUAL_HOST=${NIBIRU_WEHOOK_RECEIVER_VIRTUAL_HOST}
- VIRTUAL_PORT=${FPM_VIRTUAL_PORT}
- NIBIRU_WEHOOK_RECEIVER_VIRTUAL_HOST=${NIBIRU_WEHOOK_RECEIVER_VIRTUAL_HOST}
- NIBIRU_WEBHOOK_HOST=${NIBIRU_WEBHOOK_HOST}
- TZ=${TZ}
nibiru-webhook-receiver-nginx:
env_file:
- .env-local
environment:
- APPLICATION_ENV=${APPLICATION_ENV}
- VIRTUAL_HOST=${NIBIRU_WEHOOK_RECEIVER_VIRTUAL_HOST}
- VIRTUAL_PORT=${NGINX_PROXY_VIRTUAL_PORT}
- TZ=${TZ}
networks:
nginx-proxy:
external: true
api_internal:
driver: bridge