daster:0.1.0
This commit is contained in:
commit
3456d6f51b
8 changed files with 59 additions and 0 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
conf/*
|
||||||
|
!conf/.gitkeep
|
||||||
|
log/*
|
||||||
|
!log/.gitkeep
|
||||||
|
certs/*
|
||||||
|
!certs/.gitkeep
|
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM alpine:3.16.9
|
||||||
|
|
||||||
|
LABEL maintainer="Alexander Zhirov <alexander@zhirov.kz>"
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache curl && \
|
||||||
|
curl -O https://alpine.zhirov.kz/zhirov-646e5b69.rsa.pub --output-dir /etc/apk/keys && \
|
||||||
|
echo 'https://alpine.zhirov.kz/v3.16/zhirov' >> /etc/apk/repositories && \
|
||||||
|
apk del --no-cache --purge curl && \
|
||||||
|
apk update && apk add --no-cache daster
|
||||||
|
|
||||||
|
VOLUME /etc/daster /var/log /var/certs
|
||||||
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
CMD ["sh", "-c", "busybox syslogd -n -O /dev/stdout & /usr/bin/daster"]
|
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Dialplan Asterisk в Docker
|
||||||
|
|
||||||
|
Веб-сервер [daster](https://git.zhirov.kz/dlang/daster) в Docker.
|
||||||
|
|
||||||
|
Сборка на версии Alpine Linux 3.16.9.
|
0
certs/.gitkeep
Normal file
0
certs/.gitkeep
Normal file
0
conf/.gitkeep
Normal file
0
conf/.gitkeep
Normal file
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
services:
|
||||||
|
daster:
|
||||||
|
image: daster:0.1.0
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
container_name: daster
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
# - 443:443
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ./conf:/etc/daster:ro
|
||||||
|
- ./certs:/var/certs:ro
|
||||||
|
- ./log:/var/log:rw
|
0
log/.gitkeep
Normal file
0
log/.gitkeep
Normal file
18
settings.conf.sample
Normal file
18
settings.conf.sample
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[web-host]
|
||||||
|
title => "Управление диалпланом"
|
||||||
|
addresses => daster
|
||||||
|
http => 80
|
||||||
|
loglevel => 0 ; 0 - debug, 1 - crit, 2 - err, 3 - warn, 4 - notice, 5 - info, 6 - alert
|
||||||
|
logoutput => 1, 4 ; 1 - syslog, 2 - stout, 4 - file => example: 1,2 or 1,2,4
|
||||||
|
logfile => /var/log/daster.log ; if log-output set with 4
|
||||||
|
|
||||||
|
[auth]
|
||||||
|
login => daster
|
||||||
|
password => daster
|
||||||
|
|
||||||
|
[daster-db]
|
||||||
|
host => 127.0.0.1
|
||||||
|
port => 5432
|
||||||
|
dbname => daster
|
||||||
|
user => daster
|
||||||
|
password => daster
|
Loading…
Add table
Add a link
Reference in a new issue