Files

36 lines
982 B
YAML
Raw Permalink Normal View History

2025-06-05 19:55:58 +05:30
services:
kopia:
image: "kopia/kopia:0.20.1"
2025-06-05 21:04:36 +05:30
container_name: "${CONTAINER_NAME}"
2025-06-05 19:55:58 +05:30
hostname: "${HOSTNAME}"
# Setup the server that provides the web gui
command:
- server
- start
- --disable-csrf-token-checks
- --insecure
- --address=0.0.0.0:51515
- --server-username=${SERVER_USERNAME}
- --server-password=${SERVER_PASSWORD}
environment:
# Set repository password
- "KOPIA_PASSWORD=${KOPIA_PASSWORD}"
- "USER=${USER}"
- "TZ=${TZ}"
volumes:
# Mount local folders needed by kopia
2025-06-14 16:46:51 +05:30
- "./config:/app/config"
- "./cache:/app/cache"
- "./logs:/app/logs"
2025-06-05 21:10:29 +05:30
# Scripts path
2025-06-14 16:46:51 +05:30
- "./scripts:/scripts"
2025-06-05 19:55:58 +05:30
# Mount path for browsing mounted snaphots
2025-06-14 16:46:51 +05:30
- "./tmp:/tmp:shared"
2025-06-14 16:53:23 +05:30
# Restore path
- "./restore:/restore"
2025-06-14 16:46:51 +05:30
# Mount local folders to snapshot
- "${SOURCE_PATH}:/data:ro"
ports:
- "${PORT}:51515"
2025-06-05 19:55:58 +05:30
restart: "unless-stopped"