commit d46a398d5ada314a886d7c87ac8959661012ee2c Author: Alexander Zhirov Date: Fri Jun 9 11:44:03 2023 +0300 v0.1.0-beta.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2e5f71 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +conf/* +!conf/.gitkeep +log/* +!log/.gitkeep +certs/* +!certs/.gitkeep diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2d0829f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM registry.zhirov.kz/alpine:3.17.3-arm64 +LABEL maintainer="Alexander Zhirov " +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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..a01d50f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Dialplan Asterisk в Docker + +Веб-сервер [daster](https://git.zhirov.kz/alexander/daster) в Docker. diff --git a/certs/.gitkeep b/certs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/conf/.gitkeep b/conf/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..823f7f9 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/log/.gitkeep b/log/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/settings.conf.sample b/settings.conf.sample new file mode 100644 index 0000000..39d4a52 --- /dev/null +++ b/settings.conf.sample @@ -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