Public Repository

Last pushed: a year ago
Short Description
OpenSIPS 2.2 with Unbound DNS
Full Description

source

https://github.com/icehook/docker-opensips

create persisted directories

mkdir -p /docker/data/opensips/etc/opensips
mkdir -p /docker/data/opensips/var/log/opensips
mkdir -p /docker/data/opensips/var/log/persistent

copy over your config

cp opensips.cfg /docker/data/opensips/etc/opensips/opensips.cfg

run container

docker run --name opensips -v /docker/data/opensips/var/log/persistent:/var/log/persistent -v /docker/data/opensips/var/log/opensips:/var/log/opensips -v /docker/data/opensips/etc/opensips:/etc/opensips --dns=127.0.0.1 --dns=8.8.8.8 -p 5060:5060/udp --restart=always -P -d icehook/opensips:2.2

opensips-compose.yml

version: '2'
services:
  opensips:
    restart: always
    stdin_open: true
    tty: true
    image: icehook/opensips:2.2
    volumes:
      - /docker/data/opensips/var/log/persistent:/var/log/persistent
      - /docker/data/opensips/var/log/opensips:/var/log/opensips
      - /docker/data/opensips/etc/opensips:/etc/opensips
    ulimits:
      nofile:
        soft: 64000
        hard: 64000
    ports:
     - '5060:5060'
Docker Pull Command
Owner
icehook

Comments (0)