Commit ca9c7832 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Merge origin/DRIP_2.0 into DRIP_2.0

parents 664e1628 04223087
...@@ -96,50 +96,73 @@ services: ...@@ -96,50 +96,73 @@ 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 notify_asterisk:
# TODO: Add shared storage/volume for sounds
restart: always
image: dorinelfilip/ast13
environment: environment:
- SIP_USERNAME=55025
- SIP_HOST=sip.clickphone.ro
- SIP_PORT=${SIP_PORT:-26999}
- SIP_SECRET=beiaSWITCH
- SIP_EXTENSION=0310050728
- SIP_PEERNAME=clickphone
- ARI_USERNAME=${ARI_USERNAME:-admin}
- ARI_SECRET=${ARI_SECRET:-changeme}
networks:
- notify_asterisk
notify:
restart: always
image: dorinelfilip/notify
depends_on: depends_on:
- monitoring_adapter
- notify_asterisk - notify_asterisk
- notify_redis - 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: networks:
# - config - notify_asterisk
- data - notify_redis
- sip - notify
notify_asterisk: - asap
image: beia/asterisk
environment: environment:
- SIP_USERNAME=${SIP_USERNAME} - ARI_URL=${ARI_URL:-http://notify_asterisk:8088}
- SIP_HOST=${SIP_HOST} - ARI_USERNAME=${ARI_USERNAME:-admin}
- SIP_PORT=${SIP_PORT:-26999} # Warning! Different ENV variable for notify & Asterisk
- SIP_SECRET=${SIP_SECRET} # TODO: Change
- SIP_EXTENSION=${SIP_EXTENSION} - ARI_PASSWORD=${ARI_SECRET:-changeme}
- SIP_PEERNAME=sipserver - REDIS_HOST=${REDIS_HOST:-notify_redis}
- ARI_USERNAME=ari_user - REDIS_PORT=${REDIS_PORT:-6379}
- ARI_SECRET=ari_secret - REDIS_PASSWORD=${REDIS_PASSWORD:-changeme}
networks: - DEFAULT_SIP=${DEFAULT_SIP:-${SIP_PEERNAME}}
- sip - MONITORING_SERVER = monitoring_server
- MONITORING_ADAPTER = monitoring_adapter
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:
notify_asterisk:
notify:
data: data:
web: web:
graphite: graphite:
sip:
asap: 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