broadcast/conf/docker-compose.yaml

80 lines
1.9 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
2023-11-11 04:45:54 -05:00
#start_interval: 5s
2023-11-05 16:42:03 -05:00
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
ports:
2023-11-11 04:45:54 -05:00
- 10000:5672
2023-11-05 16:42:03 -05:00
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
2023-11-11 04:45:54 -05:00
RABBITMQ_PORT: 10000
2023-11-05 16:42:03 -05:00
RABBITMQ_TOPICS: 'notification.*.ashish.*,call.*.ashish,alarm.*.ashish'
GOOGLE_HOME_NAME: Bedroom speaker
2023-11-11 04:45:54 -05:00
HTTP_IP: ${SERVER_IP}
HTTP_PORT: 10001
2023-11-05 16:42:03 -05:00
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
2023-11-05 16:42:03 -05:00
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:
2023-11-11 04:45:54 -05:00
- ${SERVER_IP}:10001:80
2023-11-05 16:42:03 -05:00
volumes:
bedroom-speaker-audio:
name: broadcast-bedroom-speaker-audio
external: true