80 lines
1.9 KiB
YAML
80 lines
1.9 KiB
YAML
services:
|
|
rabbitmq:
|
|
container_name: broadcast-rabbitmq
|
|
image: rabbitmq:3.12.6
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: rabbitmq-diagnostics -q ping
|
|
interval: 30s
|
|
retries: 3
|
|
timeout: 10s
|
|
start_period: 30s
|
|
#start_interval: 5s
|
|
volumes:
|
|
- type: bind
|
|
source: /etc/localtime
|
|
target: /etc/localtime
|
|
read_only: true
|
|
ports:
|
|
- 10000:5672
|
|
bedroom-speaker-player:
|
|
container_name: broadcast-bedroom-speaker-player
|
|
image: broadcast-player:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
rabbitmq:
|
|
condition: service_healthy
|
|
command: ['google_home', 'bedroom_speaker']
|
|
environment:
|
|
RABBITMQ_HOST: localhost
|
|
RABBITMQ_PORT: 10000
|
|
RABBITMQ_TOPICS: 'notification.*.ashish.*,call.*.ashish,alarm.*.ashish'
|
|
GOOGLE_HOME_NAME: Bedroom speaker
|
|
HTTP_IP: ${SERVER_IP}
|
|
HTTP_PORT: 10001
|
|
volumes:
|
|
- type: volume
|
|
source: bedroom-speaker-audio
|
|
target: /mnt/audio
|
|
- type: bind
|
|
source: /etc/localtime
|
|
target: /etc/localtime
|
|
read_only: true
|
|
network_mode: host
|
|
ntfy-router:
|
|
container_name: broadcast-ntfy-router
|
|
image: broadcast-ntfy-router:latest
|
|
restart: unless-stopped
|
|
depends_on:
|
|
rabbitmq:
|
|
condition: service_healthy
|
|
environment:
|
|
RABBITMQ_HOST: localhost
|
|
RABBITMQ_PORT: 10000
|
|
volumes:
|
|
- type: bind
|
|
source: /etc/localtime
|
|
target: /etc/localtime
|
|
read_only: true
|
|
network_mode: host
|
|
nginx:
|
|
container_name: broadcast-nginx
|
|
image: nginx:1.25.2
|
|
restart: unless-stopped
|
|
volumes:
|
|
- type: volume
|
|
source: bedroom-speaker-audio
|
|
target: /usr/share/nginx/html
|
|
read_only: true
|
|
- type: bind
|
|
source: /etc/localtime
|
|
target: /etc/localtime
|
|
read_only: true
|
|
ports:
|
|
- ${SERVER_IP}:10001:80
|
|
|
|
volumes:
|
|
bedroom-speaker-audio:
|
|
name: broadcast-bedroom-speaker-audio
|
|
external: true
|