mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 04:20:59 +01:00
23 lines
452 B
YAML
23 lines
452 B
YAML
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
|
|
|
|
anydb:
|
|
container_name: anydb
|
|
user: "${USER_ID}:${USER_ID}"
|
|
volumes:
|
|
- ${OUTDIR}:/backup
|
|
working_dir: /backup
|
|
build: .
|
|
image: anydb:latest
|
|
depends_on:
|
|
init:
|
|
condition: service_completed_successfully
|