Archive kopia

This commit is contained in:
2025-07-02 17:40:56 +05:30
parent 0735758b73
commit 8b9ae861bd

View File

@@ -0,0 +1,35 @@
services:
kopia:
image: kopia/kopia:0.20.1
container_name: ${CONTAINER_NAME}
hostname: ${HOSTNAME}
command:
- server
- start
- --disable-csrf-token-checks
- --insecure
- --address=0.0.0.0:51515
- --server-username=${SERVER_USERNAME}
- --server-password=${SERVER_PASSWORD}
environment:
- KOPIA_PASSWORD=${KOPIA_PASSWORD}
- USER=${USER}
- TZ=${TZ}
volumes:
# Mount local folders needed by kopia
- ./config:/app/config
- ./cache:/app/cache
- ./logs:/app/logs
# Scripts path
- ./scripts:/scripts
# Mount path for browsing mounted snaphots
- ./tmp:/tmp:shared
# Mount repository location
- ${BACKUP_PATH}:/repository
# Restore path
- ${RESTORE_PATH}:/restore
# Mount local folders to snapshot
- ${SOURCE_PATH}:/data:ro
ports:
- "${PORT}:51515"
restart: unless-stopped