In test, label both services

This commit is contained in:
Frederik Ring 2024-01-26 16:18:48 +01:00
parent 978e900308
commit f14b796aab

View File

@ -6,9 +6,6 @@ version: '3.8'
services: services:
minio: minio:
image: minio/minio:RELEASE.2020-08-04T23-10-51Z image: minio/minio:RELEASE.2020-08-04T23-10-51Z
deploy:
restart_policy:
condition: on-failure
environment: environment:
MINIO_ROOT_USER: test MINIO_ROOT_USER: test
MINIO_ROOT_PASSWORD: test MINIO_ROOT_PASSWORD: test
@ -22,9 +19,6 @@ services:
image: offen/docker-volume-backup:${TEST_VERSION:-canary} image: offen/docker-volume-backup:${TEST_VERSION:-canary}
depends_on: depends_on:
- minio - minio
deploy:
restart_policy:
condition: on-failure
environment: environment:
AWS_ACCESS_KEY_ID: test AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: GMusLtUmILge2by+z890kQ AWS_SECRET_ACCESS_KEY: GMusLtUmILge2by+z890kQ
@ -52,13 +46,11 @@ services:
image: postgres:14-alpine image: postgres:14-alpine
environment: environment:
POSTGRES_PASSWORD: example POSTGRES_PASSWORD: example
labels:
- docker-volume-backup.stop-during-backup=true
volumes: volumes:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
deploy: deploy:
restart_policy: labels:
condition: on-failure - docker-volume-backup.stop-during-backup=true
volumes: volumes:
backup_data: backup_data: