added docker image support

* added environment variable support
* added docker instructions
* added .env hint
This commit is contained in:
T.v.Dein
2024-01-17 14:44:30 +01:00
committed by Thomas von Dein
parent 42a958fc4c
commit 3c93c9fce0
11 changed files with 174 additions and 2 deletions

22
docker-compose.yaml Normal file
View File

@@ -0,0 +1,22 @@
version: "3.9"
services:
init:
image: alpine:latest
user: "root"
group_add:
- '${GROUP_ID}'
volumes:
- ${OUTDIR}:/backup
command: chown -R ${USER_ID}:${USER_ID} /backup
kleingebaeck:
container_name: kleingebaeck
user: "${USER_ID}:${USER_ID}"
volumes:
- ${OUTDIR}:/backup
working_dir: /backup
build: .
image: kleingebaeck:latest
depends_on:
init:
condition: service_completed_successfully