Revert "Allow backup to be run as non-root user (#366)" (#370)

This reverts commit f64aaa6e24.
This commit is contained in:
Frederik Ring
2024-02-21 18:43:13 +01:00
committed by GitHub
parent 02ba9939a2
commit 4b3ca2ebb0
11 changed files with 6 additions and 131 deletions

View File

@@ -371,24 +371,3 @@ volumes:
data_1:
data_2:
```
## Running as a non-root user
```yml
version: '3'
services:
# ... define other services using the `data` volume here
backup:
image: offen/docker-volume-backup:v2
user: 1000:1000
environment:
AWS_S3_BUCKET_NAME: backup-bucket
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
volumes:
- data:/backup/my-app-backup:ro
volumes:
data:
```