Skip to main content

Docker

You can run Backupman using Docker.

Image

The official Docker image for Backupman is available on Docker Hub.

docker run -it --rm herytz/backupman version
Output
Version: x.x.x
Commit SHA: xxx
Build Date: xxx
warning

You should import your configuration file into the container. By default, Backupman will look the configuration file at /app/config.yml.

Full Compose Example

You can use the following compose.yml file to run Backupman:

compose.yml
services:
backupman_db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: backupman
volumes:
- backupman_db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
start_period: 30s
interval: 5s

backupman:
image: herytz/backupman
volumes:
- ./config.yml:/app/config.yml
- ./storage:/app/storage
ports:
- 8080:8080
command: serve
depends_on:
backupman_db:
condition: service_healthy

volumes:
backupman_db_data: