Kamis, 02 November 2023

ELKABACKUP-docker

 

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:

pathdescription
/app/backupsDefault backup storage directory.
/app/uploadsPre and post scripts.
/app/.sshSSH 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

namedefault valuedescription
TZEurope/ParisTimezone
PHP_TZEurope/ParisTimezone (PHP)
EB_CRONenabledrun tick command periodically

Database configuration

namedefault valuedescription
SYMFONY__DATABASE__DRIVERpdo_mysqldriver
SYMFONY__DATABASE__PATHnulldb path (sqlite)
SYMFONY__DATABASE__HOSTdbdb host
SYMFONY__DATABASE__PORT3306db port
SYMFONY__DATABASE__NAMEelkarbackupdb name
SYMFONY__DATABASE__USERrootdb user
SYMFONY__DATABASE__PASSWORDrootdb password

Mailer configuration

namedefault valuedescription
SYMFONY__MAILER__TRANSPORTsmtptransport
SYMFONY__MAILER__HOSTlocalhosthost
SYMFONY__MAILER__USERnulluser
SYMFONY__MAILER__PASSWORDnullpassword
SYMFONY__MAILER__FROMnullfrom address

Elkarbackup configuration

namedefault valuedescription
SYMFONY__EB__SECRETrandom value will be generatedframework secret
SYMFONY__EB__UPLOAD__DIR/app/uploadsscripts directory
SYMFONY__EB__BACKUP__DIR/app/backupsbackups directory
SYMFONY__EB__TMP__DIR/app/tmptmp directory
SYMFONY__EB__URL__PREFIXnullurl path prefix (i.e. /elkarbackup)
SYMFONY__EB__PUBLIC__KEY/app/.ssh/id_rsa.pubssh public key path
SYMFONY__EB__MAX__PARALLEL__JOBS1max parallel jobs
SYMFONY__EB__POST__ON__PRE__FAILtruepost on pre fail

Tidak ada komentar:

Posting Komentar