v0.1.0-beta.1

This commit is contained in:
Alexander Zhirov 2023-06-09 11:44:03 +03:00
commit b3abd03680
8 changed files with 52 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
conf/*
!conf/.gitkeep
log/*
!log/.gitkeep
certs/*
!certs/.gitkeep

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM registry.zhirov.kz/alpine:3.17.3-arm64
LABEL maintainer="Alexander Zhirov <alexander@zhirov.kz>"
RUN 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"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Dialplan Asterisk в Docker
Веб-сервер [daster](https://git.zhirov.kz/alexander/daster) в Docker.

0
certs/.gitkeep Normal file
View File

0
conf/.gitkeep Normal file
View File

16
docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
services:
pxe-sync:
image: registry.zhirov.kz/daster-0.1.0:alpine-3.17.3-arm64
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
View File

21
settings.conf.sample Normal file
View File

@ -0,0 +1,21 @@
[web-host]
title => "Управление диалпланом"
addresses => daster
http => 80
;https => 443
;cert => /var/certs/my-site-cert.crt
;key => /var/certs/my-site-key.key
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