broadcast/conf/docker-compose.yaml

64 lines
1.5 KiB
YAML
Raw Normal View History

2023-11-05 16:42:03 -05:00
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:
- 5672: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: 5672
RABBITMQ_TOPICS: 'notification.*.ashish.*,call.*.ashish,alarm.*.ashish'
GOOGLE_HOME_NAME: Bedroom speaker
HTTP_IP: 192.168.0.10
HTTP_PORT: 24984
volumes:
- type: volume
source: bedroom-speaker-audio
target: /mnt/audio
- 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:
- 192.168.0.10:24984:80
volumes:
bedroom-speaker-audio:
name: broadcast-bedroom-speaker-audio
external: true