ElkarBackup
https://hub.docker.com/r/elkarbackup/elkarbackup/
https://github.com/elkarbackup/elkarbackup-docker/tree/master/elkarbackup/1.3 ===OKE==
Images
- 2.1.0, 2.1, 2, latest (default)
- 2.0.2, 2.0
- 1.3.5
How to use this image
$ docker run --name my-elkarbackup --link some-mysql:mysql -d elkarbackup/elkarbackup:latest
Also hosted on GitHub Container Registry
- DockerHub image is at
elkarbackup/elkarbackup:<version>
- GitHub image is at
ghcr.io/elkarbackup/elkarbackup:<version>
- Since v2.0.x they both carry the same images
- This can be useful if you're already hitting DockerHub's rate limits and can't pull the proxy from DockerHub
Where to store data
Docker container does not come with persistent storage. However, there are several ways to store data in the host machine. We encourage users to familiarize themselves with the options available.
Below you have the directories you might want to persist:
path | description |
---|---|
/app/backups | Default backup storage directory. |
/app/uploads | Pre and post scripts. |
/app/.ssh | SSH keys. |
... via docker-compose
You can use Docker Compose to easily run ElkarBackup in an isolated environment built with Docker containers:
docker-compose.yml
version: '3'
services:
elkarbackup:
image: elkarbackup/elkarbackup:latest
environment:
SYMFONY__DATABASE__PASSWORD: "your-password-here"
EB_CRON: "enabled"
volumes:
- backups:/app/backups
- uploads:/app/uploads
- sshkeys:/app/.ssh
ports:
- 8000:80
db:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: "your-password-here"
volumes:
- db:/var/lib/mysql
volumes:
db:
backups:
uploads:
sshkeys:
Run docker-compose up
, wait for it to initialize completely, and go the address:
Environment variables
The following environment variables are also honored for configuring your ElkarBackup instance:
General
name | default value | description |
---|---|---|
TZ | Europe/Paris | Timezone |
PHP_TZ | Europe/Paris | Timezone (PHP) |
EB_CRON | enabled | run tick command periodically |
Database configuration
name | default value | description |
---|---|---|
SYMFONY__DATABASE__DRIVER | pdo_mysql | driver |
SYMFONY__DATABASE__PATH | null | db path (sqlite) |
SYMFONY__DATABASE__HOST | db | db host |
SYMFONY__DATABASE__PORT | 3306 | db port |
SYMFONY__DATABASE__NAME | elkarbackup | db name |
SYMFONY__DATABASE__USER | root | db user |
SYMFONY__DATABASE__PASSWORD | root | db password |
Mailer configuration
name | default value | description |
---|---|---|
SYMFONY__MAILER__TRANSPORT | smtp | transport |
SYMFONY__MAILER__HOST | localhost | host |
SYMFONY__MAILER__USER | null | user |
SYMFONY__MAILER__PASSWORD | null | password |
SYMFONY__MAILER__FROM | null | from address |
Elkarbackup configuration
name | default value | description |
---|---|---|
SYMFONY__EB__SECRET | random value will be generated | framework secret |
SYMFONY__EB__UPLOAD__DIR | /app/uploads | scripts directory |
SYMFONY__EB__BACKUP__DIR | /app/backups | backups directory |
SYMFONY__EB__TMP__DIR | /app/tmp | tmp directory |
SYMFONY__EB__URL__PREFIX | null | url path prefix (i.e. /elkarbackup) |
SYMFONY__EB__PUBLIC__KEY | /app/.ssh/id_rsa.pub | ssh public key path |
SYMFONY__EB__MAX__PARALLEL__JOBS | 1 | max parallel jobs |
SYMFONY__EB__POST__ON__PRE__FAIL | true | post on pre fail |
Tidak ada komentar:
Posting Komentar