mirror of
https://github.com/eftechcombr/bacula.git
synced 2025-10-10 19:26:18 +00:00
Build 13.0.3
This commit is contained in:
34
docker/baculum-api/Config-api-apache/api.conf
Normal file
34
docker/baculum-api/Config-api-apache/api.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
[api]
|
||||
auth_type = "basic"
|
||||
debug = "0"
|
||||
lang = "en"
|
||||
|
||||
[db]
|
||||
enabled = "1"
|
||||
type = "pgsql"
|
||||
name = "bacula"
|
||||
login = "bacula"
|
||||
password = "bacula"
|
||||
ip_addr = "db"
|
||||
port = "5432"
|
||||
path = ""
|
||||
|
||||
[bconsole]
|
||||
enabled = "1"
|
||||
bin_path = "/opt/bacula/bin/bconsole"
|
||||
cfg_path = "/opt/bacula/etc/bconsole.conf"
|
||||
use_sudo = "1"
|
||||
|
||||
[jsontools]
|
||||
enabled = "1"
|
||||
use_sudo = "1"
|
||||
bconfig_dir = "/opt/bacula/etc"
|
||||
bdirjson_path = "/opt/bacula/bin/bdirjson"
|
||||
dir_cfg_path = "/opt/bacula/etc/bacula-dir.conf"
|
||||
bsdjson_path = "/opt/bacula/bin/bsdjson"
|
||||
sd_cfg_path = "/opt/bacula/etc/bacula-sd.conf"
|
||||
bfdjson_path = "/opt/bacula/bin/bfdjson"
|
||||
fd_cfg_path = "/opt/bacula/etc/bacula-fd.conf"
|
||||
bbconsjson_path = "/opt/bacula/bin/bbconsjson"
|
||||
bcons_cfg_path = "/opt/bacula/etc/bconsole.conf"
|
||||
|
1
docker/baculum-api/Config-api-apache/baculum.users
Normal file
1
docker/baculum-api/Config-api-apache/baculum.users
Normal file
@@ -0,0 +1 @@
|
||||
admin:YWG41BPzVAkN6
|
38
docker/baculum-api/Dockerfile
Normal file
38
docker/baculum-api/Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
FROM eftechcombr/bacula:13.0.3-base
|
||||
|
||||
RUN curl https://www.bacula.org/downloads/baculum/baculum.pub | apt-key add -
|
||||
|
||||
COPY baculum.list /etc/apt/sources.list.d/baculum.list
|
||||
|
||||
RUN apt update && \
|
||||
apt -y install \
|
||||
php-bcmath \
|
||||
php*-mbstring \
|
||||
php-fpm \
|
||||
baculum-api \
|
||||
baculum-api-apache2 \
|
||||
baculum-common \
|
||||
bacula-console \
|
||||
baculum-web \
|
||||
baculum-web-apache2 \
|
||||
supervisor
|
||||
|
||||
COPY sudoers-baculum /etc/sudoers.d/sudoers-baculum
|
||||
|
||||
RUN usermod -aG bacula www-data && \
|
||||
chown -R www-data:bacula /opt/bacula/working /opt/bacula/etc && \
|
||||
chmod -R g+rwx /opt/bacula/working /opt/bacula/etc && \
|
||||
a2enmod rewrite && \
|
||||
a2ensite baculum-api
|
||||
|
||||
COPY timezone.ini /etc/php.d/timezone.ini
|
||||
|
||||
COPY confs/supervisord.conf /etc/supervisord.conf
|
||||
|
||||
VOLUME ["/opt/bacula/etc","/etc/baculum"]
|
||||
|
||||
EXPOSE 9096/tcp
|
||||
|
||||
RUN mkdir -p /run/php
|
||||
|
||||
CMD ["/usr/bin/supervisord"]
|
2
docker/baculum-api/baculum.list
Normal file
2
docker/baculum-api/baculum.list
Normal file
@@ -0,0 +1,2 @@
|
||||
deb [ arch=amd64 ] https://www.bacula.org/downloads/baculum/stable-11/debian bullseye main
|
||||
deb-src https://www.bacula.org/downloads/baculum/stable-11/debian bullseye main
|
31
docker/baculum-api/confs/supervisord.conf
Normal file
31
docker/baculum-api/confs/supervisord.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
[unix_http_server]
|
||||
file=/var/run/supervisor.sock ; the path to the socket file
|
||||
|
||||
[supervisord]
|
||||
logfile=/var/log/supervisord.log
|
||||
loglevel=info
|
||||
pidfile=/var/run/supervisord.pid
|
||||
nodaemon=true
|
||||
logfile_backups=10
|
||||
logfile_maxbytes=50MB
|
||||
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///var/run/supervisor.sock
|
||||
|
||||
|
||||
[program:php-fpm7.4]
|
||||
command=/usr/sbin/php-fpm7.4 --nodaemonize -c /etc/php/7.4/fpm/php-fpm.conf
|
||||
priority=50
|
||||
autorestart=true
|
||||
|
||||
|
||||
[program:apache2]
|
||||
command=/usr/sbin/apache2ctl -D FOREGROUND
|
||||
priority=50
|
||||
autorestart=true
|
||||
|
16
docker/baculum-api/sudoers-baculum
Normal file
16
docker/baculum-api/sudoers-baculum
Normal file
@@ -0,0 +1,16 @@
|
||||
Defaults:apache "'!'"requiretty
|
||||
www-data ALL=NOPASSWD: /usr/sbin/bconsole
|
||||
www-data ALL=NOPASSWD: /usr/sbin/bdirjson
|
||||
www-data ALL=NOPASSWD: /usr/sbin/bsdjson
|
||||
www-data ALL=NOPASSWD: /usr/sbin/bfdjson
|
||||
www-data ALL=NOPASSWD: /usr/sbin/bbconsjson
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-dir
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-dir
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-dir
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-sd
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-sd
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-sd
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl start bacula-fd
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl stop bacula-fd
|
||||
www-data ALL=(root) NOPASSWD: /usr/bin/systemctl restart bacula-fd
|
||||
www-data ALL=(root) NOPASSWD: /opt/bacula/bin/mtx-changer
|
2
docker/baculum-api/timezone.ini
Normal file
2
docker/baculum-api/timezone.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[Date]
|
||||
date.timezone = Etc/UTC ;
|
Reference in New Issue
Block a user