66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
services:
|
|
rabbitmq:
|
|
image: rabbitmq:3-management
|
|
ports:
|
|
- "5672:5672" # RabbitMQ communication port
|
|
- "15672:15672" # RabbitMQ management port
|
|
networks:
|
|
- freeleaps_service_hub_network
|
|
healthcheck:
|
|
test: [ "CMD", "rabbitmq-diagnostics", "ping" ]
|
|
interval: 30s
|
|
retries: 5
|
|
start_period: 10s
|
|
timeout: 10s
|
|
|
|
central_storage:
|
|
build:
|
|
context: app/central_storage
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
environment:
|
|
- AZURE_STORAGE_DOCUMENT_API_KEY=${AZURE_STORAGE_DOCUMENT_API_KEY}
|
|
ports:
|
|
- "8005:8005" # Map the central_storage service port
|
|
networks:
|
|
- freeleaps_service_hub_network
|
|
env_file:
|
|
- sites/central_storage/.env
|
|
volumes:
|
|
- .:/app # Mount the current directory to /app in the container
|
|
|
|
authentication:
|
|
build:
|
|
context: app/authentication
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
ports:
|
|
- "8004:8004" # Map the central_storage service port
|
|
networks:
|
|
- freeleaps_service_hub_network
|
|
env_file:
|
|
- sites/authentication/.env
|
|
volumes:
|
|
- .:/app # Mount the current directory to /app in the container
|
|
|
|
notification:
|
|
build:
|
|
context: app/notification
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
ports:
|
|
- "8003:8003" # Map the central_storage service port
|
|
networks:
|
|
- freeleaps_service_hub_network
|
|
env_file:
|
|
- sites/notification/.env
|
|
environment:
|
|
RABBITMQ_HOST: rabbitmq
|
|
SENDGRID_API_KEY: "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"
|
|
volumes:
|
|
- .:/app # Mount the current directory to /app in the container
|
|
|
|
networks:
|
|
freeleaps_service_hub_network:
|
|
driver: bridge
|