60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
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:
|