Unverified Commit 7ae2959a authored by skoulouzis's avatar skoulouzis Committed by GitHub

Update beia_docker-compose.yml

parent 0d8320e1
...@@ -96,50 +96,72 @@ services: ...@@ -96,50 +96,72 @@ services:
- /var/run/docker.sock:/tmp/docker.sock:ro - /var/run/docker.sock:/tmp/docker.sock:ro
networks: networks:
- web - web
notify:
image: beia/notify
environment:
depends_on:
- monitoring_adapter
- notify_asterisk
- notify_redis
environment:
# - CONFIG=config
- ARI_URL=http://notify_asterisk:8088
- ARI_USERNAME=ari_user
- ARI_PASSWORD=ari_secret
- REDIS_HOST=notify_redis
- REDIS_PORT=6379
- DEFAULT_SIP=sipserver
- MONITORING_ADAPTER=monitoring_adapter
networks:
# - config
- data
- sip
notify_asterisk: notify_asterisk:
image: beia/asterisk # TODO: Add shared storage/volume for sounds
environment: restart: always
- SIP_USERNAME=${SIP_USERNAME} image: dorinelfilip/ast13
- SIP_HOST=${SIP_HOST} environment:
- SIP_PORT=${SIP_PORT:-26999} - SIP_USERNAME=55025
- SIP_SECRET=${SIP_SECRET} - SIP_HOST=sip.clickphone.ro
- SIP_EXTENSION=${SIP_EXTENSION} - SIP_PORT=${SIP_PORT:-26999}
- SIP_PEERNAME=sipserver - SIP_SECRET=beiaSWITCH
- ARI_USERNAME=ari_user - SIP_EXTENSION=0310050728
- ARI_SECRET=ari_secret - SIP_PEERNAME=clickphone
networks: - ARI_USERNAME=${ARI_USERNAME:-admin}
- sip - ARI_SECRET=${ARI_SECRET:-changeme}
networks:
- notify_asterisk
notify:
restart: always
image: dorinelfilip/notify
depends_on:
- notify_asterisk
- notify_redis
networks:
- notify_asterisk
- notify_redis
- notify
- asap
environment:
- ARI_URL=${ARI_URL:-http://notify_asterisk:8088}
- ARI_USERNAME=${ARI_USERNAME:-admin}
# Warning! Different ENV variable for notify & Asterisk
# TODO: Change
- ARI_PASSWORD=${ARI_SECRET:-changeme}
- REDIS_HOST=${REDIS_HOST:-notify_redis}
- REDIS_PORT=${REDIS_PORT:-6379}
- REDIS_PASSWORD=${REDIS_PASSWORD:-changeme}
- DEFAULT_SIP=${DEFAULT_SIP:-${SIP_PEERNAME}}
- MONITORING_ADAPTER = monitoring_server
ports:
- "8001:80/tcp"
notify_redis: notify_redis:
restart: always
image: redis:alpine image: redis:alpine
entrypoint:
- redis-server
- "--requirepass"
# Not the best way to do it, but it is nice since no modification
# of the container image is needed
- ${REDIS_PASSWORD:-changeme}
networks: networks:
- sip - notify_redis
volumes: volumes:
graphite_data: - redis_data:/data
grafana_data:
networks: networks:
# config: notify_redis:
data: notify_asterisk:
web: notify:
graphite: data:
sip: web:
asap: graphite:
asap:
volumes:
graphite_data:
grafana_data:
redis_data:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment