mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Merge pull request #12 from Proteon/hostname
Use container's hostname instead of localhost as backuppc hostname
This commit is contained in:
commit
223ef0d12e
13
README.md
13
README.md
@ -17,6 +17,7 @@
|
|||||||
* [Upgrading](#upgrading)
|
* [Upgrading](#upgrading)
|
||||||
* [Dockerising an existing BackupPC v3.x](#dockerising-an-existing-backuppc-v3x)
|
* [Dockerising an existing BackupPC v3.x](#dockerising-an-existing-backuppc-v3x)
|
||||||
* [Miscellaneous](#miscellaneous)
|
* [Miscellaneous](#miscellaneous)
|
||||||
|
* [Hostname](#hostname)
|
||||||
* [Timezone](#timezone)
|
* [Timezone](#timezone)
|
||||||
* [Shell access](#shell-access)
|
* [Shell access](#shell-access)
|
||||||
* [Legacy version](#legacy-version)
|
* [Legacy version](#legacy-version)
|
||||||
@ -236,6 +237,18 @@ The configure.pl script will detect a v3.x version under /etc/backuppc, and will
|
|||||||
|
|
||||||
## Miscellaneous
|
## Miscellaneous
|
||||||
|
|
||||||
|
### Hostname
|
||||||
|
|
||||||
|
The backuppc host name will default to the container's hostname. You can modify this by setting `--hostname` in your `docker run` command like so:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run \
|
||||||
|
--name backuppc \
|
||||||
|
--hostname backuppc.example.org \
|
||||||
|
--publish 80:8080 \
|
||||||
|
adferrand/backuppc
|
||||||
|
```
|
||||||
|
|
||||||
### Timezone
|
### Timezone
|
||||||
|
|
||||||
By default the timezone of this docker is set to UTC. To modify it, you can specify a tzdata-compatible timezone in the environment variable `TZ`.
|
By default the timezone of this docker is set to UTC. To modify it, you can specify a tzdata-compatible timezone in the environment variable `TZ`.
|
||||||
|
@ -59,7 +59,7 @@ if [ -f /firstrun ]; then
|
|||||||
--cgi-dir /var/www/cgi-bin/BackupPC \
|
--cgi-dir /var/www/cgi-bin/BackupPC \
|
||||||
--data-dir /data/backuppc \
|
--data-dir /data/backuppc \
|
||||||
--log-dir /data/backuppc/log \
|
--log-dir /data/backuppc/log \
|
||||||
--hostname localhost \
|
--hostname $(</etc/hostname) \
|
||||||
--html-dir /var/www/html/BackupPC \
|
--html-dir /var/www/html/BackupPC \
|
||||||
--html-dir-url /BackupPC \
|
--html-dir-url /BackupPC \
|
||||||
--install-dir /usr/local/BackupPC \
|
--install-dir /usr/local/BackupPC \
|
||||||
|
Loading…
Reference in New Issue
Block a user