First commit merge
This commit is contained in:
59
docker-compose.yml
Normal file
59
docker-compose.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
drachtio:
|
||||
image: drachtio/drachtio-server:latest
|
||||
container_name: drachtio-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5060:5060/udp" # SIP UDP port
|
||||
- "5060:5060/tcp" # SIP TCP port
|
||||
- "5061:5061/tcp" # SIP TLS port
|
||||
- "9022:9022/tcp" # Admin port
|
||||
volumes:
|
||||
- ./config/drachtio.conf.xml:/etc/drachtio/drachtio.conf.xml
|
||||
- ./logs:/var/log/drachtio
|
||||
- ./scripts:/usr/local/bin/scripts:ro
|
||||
environment:
|
||||
- DRACHTIO_LOG_LEVEL=debug
|
||||
- DRACHTIO_SOFIA_LOG_LEVEL=9
|
||||
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin/scripts
|
||||
networks:
|
||||
- drachtio-network
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-z", "localhost", "9022"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
user: root
|
||||
|
||||
# sbc:
|
||||
# image: drachtio/drachtio-server:latest
|
||||
# container_name: drachtio-server
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "5060:5060/udp" # SIP UDP port
|
||||
# - "5060:5060/tcp" # SIP TCP port
|
||||
# - "5061:5061/tcp" # SIP TLS port
|
||||
# - "9022:9022/tcp" # Admin port
|
||||
# volumes:
|
||||
# - # ./config/drachtio.conf.xml:/etc/drachtio/drachtio.c# onf.xml
|
||||
# - ./logs:/var/log/drachtio
|
||||
# - ./scripts:/usr/local/bin/scripts:ro
|
||||
# environment:
|
||||
# - DRACHTIO_LOG_LEVEL=debug
|
||||
# - DRACHTIO_SOFIA_LOG_LEVEL=9
|
||||
# - # PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/# bin:/sbin:/bin:/usr/local/bin/scripts
|
||||
# networks:
|
||||
# - drachtio-network
|
||||
# healthcheck:
|
||||
# test: ["CMD", "nc", "-z", "localhost", "9022"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 3
|
||||
# user: root
|
||||
|
||||
networks:
|
||||
drachtio-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
drachtio-logs:
|
||||
Reference in New Issue
Block a user