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
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_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:
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