File tree 4 files changed +64
-0
lines changed
4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM debian:buster
2
+
3
+ ADD http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
4
+
5
+ # add key and apt install etc
6
+ RUN chmod 644 /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg && echo "deb http://download.proxmox.com/debian/pbs buster pbs-no-subscription" > /etc/apt/sources.list.d/proxmox.list \
7
+ && apt-get update && apt-get install -y proxmox-backup-server=1.0.1-1 nfs-common supervisor \
8
+ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
9
+
10
+ COPY pbs.ini /etc/supervisor/conf.d/supervisord.conf
11
+ COPY docker-entrypoint.sh /
12
+ RUN chmod a+x /docker-entrypoint.sh && chsh -s /bin/bash backup
13
+
14
+
15
+
16
+ ENTRYPOINT ["/docker-entrypoint.sh" ]
17
+ CMD ["/usr/bin/supervisord" ]
18
+ VOLUME [ "/etc/proxmox-backup" , "/backups" ]
19
+ STOPSIGNAL SIGINT
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ pbs :
4
+ # volumes:
5
+ # - ./etc/cas/services:/etc/cas/services:rw
6
+ build : .
7
+ ports :
8
+ - " 8007:8007"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ # Fix perm (34 is backup)
5
+ chown -R 34:34 /etc/proxmox-backup
6
+ chmod -R 700 /etc/proxmox-backup
7
+
8
+ # Add a user
9
+ if [ ! -f /etc/proxmox-backup/user.cfg ]; then
10
+ proxmox-backup-manager user create admin@pbs --password admin
11
+ proxmox-backup-manager acl update / Admin --auth-id admin@pbs
12
+ fi
13
+
14
+ exec " $@ "
Original file line number Diff line number Diff line change
1
+ [supervisord]
2
+ nodaemon =true
3
+ user =root
4
+ loglevel =debug
5
+
6
+ [unix_http_server]
7
+ file = /tmp/supervisord.sock
8
+
9
+ [program:proxmox-backup-proxy]
10
+ command =/usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-proxy
11
+ user =backup
12
+ stdout_logfile =/dev/fd/1
13
+ stdout_logfile_maxbytes =0
14
+ stderr_logfile =/dev/fd/1
15
+ stderr_logfile_maxbytes =0
16
+
17
+ [program:proxmox-backup-api]
18
+ command =/usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-api
19
+ user =root
20
+ stdout_logfile =/dev/fd/1
21
+ stdout_logfile_maxbytes =0
22
+ stderr_logfile =/dev/fd/1
23
+ stderr_logfile_maxbytes =0
You can’t perform that action at this time.
0 commit comments