forked from docker/proxmoxbackupserver
add password environment variable
This commit is contained in:
parent
2194a94dff
commit
190f125cc6
|
|
@ -15,6 +15,7 @@ RUN apt-get update && \
|
||||||
RUN chsh -s /bin/bash backup
|
RUN chsh -s /bin/bash backup
|
||||||
|
|
||||||
#Start...
|
#Start...
|
||||||
|
ENV ROOT_PASSWD="password"
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
RUN chmod a+x /entrypoint.sh
|
RUN chmod a+x /entrypoint.sh
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,9 @@ services:
|
||||||
hostname: proxmox-backup-server
|
hostname: proxmox-backup-server
|
||||||
ports:
|
ports:
|
||||||
- 8007:8007
|
- 8007:8007
|
||||||
|
environment:
|
||||||
|
- ROOT_PASSWD="password"
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/shadow:/etc/shadow:ro #Mounts your hosts password file as read-only, your host root password can be used to sign in
|
|
||||||
- ./data/etc-proxmox-backup:/etc/proxmox-backup
|
- ./data/etc-proxmox-backup:/etc/proxmox-backup
|
||||||
- ./data/var-lib-proxmox-backup:/var/lib/proxmox-backup
|
- ./data/var-lib-proxmox-backup:/var/lib/proxmox-backup
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ chmod -R 700 /etc/proxmox-backup
|
||||||
chown -R backup:backup /var/lib/proxmox-backup
|
chown -R backup:backup /var/lib/proxmox-backup
|
||||||
chmod -R 700 /var/lib/proxmox-backup
|
chmod -R 700 /var/lib/proxmox-backup
|
||||||
|
|
||||||
|
#Set password from environment variable
|
||||||
|
echo 'root:$ROOT_PASSWD' | chpasswd
|
||||||
|
|
||||||
# Start the first process
|
# Start the first process
|
||||||
./usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-api &
|
./usr/lib/x86_64-linux-gnu/proxmox-backup/proxmox-backup-api &
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue