Skip to content

Instantly share code, notes, and snippets.

@motionrus
Created September 18, 2018 08:23
Show Gist options
  • Save motionrus/3f6e3e885320d892aaf6f0a669d26193 to your computer and use it in GitHub Desktop.
Save motionrus/3f6e3e885320d892aaf6f0a669d26193 to your computer and use it in GitHub Desktop.
rus@coder:~/Docker/cardplatform$ cat docker-compose.yml
version: '2'
services:
asterisk15-lua:
image: motionrus/card-platform:part1
network_mode: host
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "./store/etc/asterisk/:/etc/asterisk/"
- "./store/var/log/asterisk:/var/log/asterisk"
- "./store/var/menu:/var/menu/"
restart: always
command: asterisk && tail -f /var/log/asterisk/messagesrus@coder:~/Docker/cardplatform$
rus@coder:~/Docker/cardplatform$ docker-compose up -d
cardplatform_asterisk15-lua_1 is up-to-date
rus@coder:~/Docker/cardplatform$ docker exec -t -i cardplatform_asterisk15-lua_1 /bin/bash
root@coder:/#ls /var/lib/asterisk/sounds/
en ru
root@coder:/# ls /var/lib/asterisk/sounds/ru/ | wc -l
371
root@coder:/# ^C
root@coder:/# exit
rus@coder:~/Docker/cardplatform$ cat docker-compose.yml
version: '2'
services:
asterisk15-lua:
image: motionrus/card-platform:part1
network_mode: host
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "./store/etc/asterisk/:/etc/asterisk/"
- "./store/var/log/asterisk:/var/log/asterisk"
- "./store/var/menu:/var/menu/"
- "./store/sounds:/var/lib/asterisk/sounds/"
restart: always
command: asterisk && tail -f /var/log/asterisk/messagesrus@coder:~/Docker/cardplatform$
rus@coder:~/Docker/cardplatform$ docker-compose stop
Stopping cardplatform_asterisk15-lua_1 ... done
rus@coder:~/Docker/cardplatform$ docker-compose up -d
Recreating cardplatform_asterisk15-lua_1 ... done
rus@coder:~/Docker/cardplatform$ docker exec -t -i cardplatform_asterisk15-lua_1 /bin/bash
root@coder:/# ls /var/lib/asterisk/sounds/
root@coder:/# ls /var/lib/asterisk/sounds/ru/ | wc -l
ls: cannot access /var/lib/asterisk/sounds/ru/: No such file or directory
0
root@coder:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment