mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-02-06 04:35:05 +01:00
* Defining test sandbox in compose file allows swapping with multi node swarm setup * Test cases can request a multi node swarm cluster * Docker healthchecks can be used for awaiting ready state * Compose profiles can be used
28 lines
641 B
YAML
28 lines
641 B
YAML
services:
|
|
manager: &node
|
|
privileged: true
|
|
image: offen/docker-volume-backup:test-sandbox
|
|
healthcheck:
|
|
test: ["CMD", "docker", "info"]
|
|
interval: 1s
|
|
timeout: 5s
|
|
retries: 50
|
|
volumes:
|
|
- $SOURCE:/code
|
|
- $TARBALL:/cache/image.tar.gz
|
|
- docker_volume_backup_test_sandbox_image:/var/lib/docker/image
|
|
- docker_volume_backup_test_sandbox_overlay2:/var/lib/docker/overlay2
|
|
|
|
worker1:
|
|
<<: *node
|
|
profiles:
|
|
- multinode
|
|
worker2:
|
|
<<: *node
|
|
profiles:
|
|
- multinode
|
|
|
|
volumes:
|
|
docker_volume_backup_test_sandbox_image:
|
|
docker_volume_backup_test_sandbox_overlay2:
|