RealOrangeOne / RealOrangeOne/docker-db-auto-backup
Docker Swarm support
Open
Nobody has claimed this yet.
more-info-needed
- Dominant language
- Python
- Stars
- 201
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to run this on docker swarm? I tried deploying but it doesn't seem to generate any actual files. Below is my config.
backup:
image: ghcr.io/realorangeone/db-auto-backup:latest
container_name: backup
environment:
- INCLUDE_LOGS=true
- COMPRESSION=gzip
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- backup_data:/var/backups
deploy:
restart_policy:
condition: on-failure
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
cloud-public:
external: true
volumes:
backup_data:
driver: local
driver_opts:
o: bind
type: none
device: /volume1/docker/db/backups
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Docker Swarm deployment configuration with its manager-node constraint, mounted Docker socket, and bind-backed backup volume. Trace why the container produces no files, then verify that database backups are generated and stored at the configured backup location when the deployment runs under Swarm.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100