This repository contains Docker images for WAL-G, a backup tool for PostgreSQL, MySQL, MongoDB, Redis, and other databases.
- 🚀 Automated Builds: Automatically builds new Docker images when WAL-G releases new versions
- 🔄 Multiple Variants: Supports all WAL-G database variants (PostgreSQL, MySQL, MongoDB, Redis, Greenplum, FDB, SQL Server)
- 🏗️ Multi-Architecture: Supports both
linux/amd64andlinux/arm64platforms - 🛡️ Security: Runs as non-root user, uses distroless base images
- 📦 Docker Hub: Images are published to
chekkan/wal-g - 🤖 Dependabot: Automatically updates dependencies
# PostgreSQL variant (default)
docker pull chekkan/wal-g:latest-pg
# MySQL variant
docker pull chekkan/wal-g:latest-mysql
# MongoDB variant
docker pull chekkan/wal-g:latest-mongo
# Redis variant
docker pull chekkan/wal-g:latest-redis# Show help
docker run --rm chekkan/wal-g:latest-pg
# Run with your configuration
docker run --rm \
-e WALG_S3_PREFIX="s3://your-bucket/path" \
-e AWS_ACCESS_KEY_ID="your-access-key" \
-e AWS_SECRET_ACCESS_KEY="your-secret-key" \
-v /var/lib/postgresql/data:/var/lib/postgresql/data \
chekkan/wal-g:latest-pg \
backup-push /var/lib/postgresql/dataYou can also run other commands within the container:
# Interactive bash shell
docker run -it chekkan/wal-g:latest-pg /bin/bash
# Run environment inspection
docker run --rm chekkan/wal-g:latest-pg printenv
# Run any other command
docker run --rm chekkan/wal-g:latest-pg ls -la /usr/local/bin/latest- Latest PostgreSQL variantlatest-pg- Latest PostgreSQL variantlatest-mysql- Latest MySQL variantlatest-mongo- Latest MongoDB variantlatest-redis- Latest Redis variantlatest-gp- Latest Greenplum variantlatest-fdb- Latest FoundationDB variantlatest-sqlserver- Latest SQL Server variantv3.0.7- Specific version (PostgreSQL variant)v3.0.7-mysql- Specific version with variant
The Dockerfile supports the following build arguments:
WAL_G_VERSION: Version of WAL-G to install (default: "latest")WAL_G_VARIANT: Database variant to install (default: "pg")
pg- PostgreSQLmysql- MySQL/MariaDBmongo- MongoDBredis- Redisgp- Greenplumfdb- FoundationDBsqlserver- SQL Server
This repository automatically:
- ✅ Monitors the wal-g/wal-g repository for new releases
- ✅ Skips pre-releases (only builds stable releases)
- ✅ Builds Docker images for all supported database variants
- ✅ Supports both linux/amd64 and linux/arm64 architectures
- ✅ Publishes images to Docker Hub
- ✅ Creates git tags matching WAL-G versions
# Build locally
docker build -t wal-g:local .
# Build specific variant
docker build --build-arg WAL_G_VARIANT=mysql -t wal-g:mysql .
# Build specific version
docker build --build-arg WAL_G_VERSION=v3.0.7 -t wal-g:v3.0.7 .
# Build for specific platform
docker build --platform linux/amd64 -t wal-g:amd64 .
docker build --platform linux/arm64 -t wal-g:arm64 .# Build and test PostgreSQL variant
docker-compose --profile pg up --build wal-g-pg
# Build and test MySQL variant
docker-compose --profile mysql up --build wal-g-mysql
# Build and test MongoDB variant
docker-compose --profile mongo up --build wal-g-mongo
# Build and test Redis variant
docker-compose --profile redis up --build wal-g-redisThe examples/ directory contains sample configurations:
postgresql-docker-compose.yml- Complete PostgreSQL setup with WAL-Gwal-archive.sh- WAL archiving script for PostgreSQLwal-restore.sh- WAL restore script for PostgreSQL
To use the PostgreSQL example:
cp examples/postgresql-docker-compose.yml docker-compose.override.yml
# Edit the file to add your S3 credentials
docker-compose up postgresYou can manually trigger a build via GitHub Actions:
- Go to the "Actions" tab
- Select "Build WAL-G Docker Images"
- Click "Run workflow"
- Optionally specify a WAL-G version
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- WAL-G - The backup tool this project packages