39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
version: "3.8"
|
|
services:
|
|
kopia:
|
|
image: "kopia/kopia:0.20.1"
|
|
container_name: "${CONTAINER_NAME}"
|
|
hostname: "${HOSTNAME}"
|
|
ports:
|
|
- "${PORT}:51515"
|
|
# 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
|
|
- "${CONFIG_PATH}:/app/config"
|
|
- "${CACHE_PATH}:/app/cache"
|
|
- "${LOGS_PATH}:/app/logs"
|
|
# Scripts path
|
|
- "${SCRIPTS_PATH}:/scripts"
|
|
# Mount path for browsing mounted snaphots
|
|
- "${TEMP_PATH}:/tmp:shared"
|
|
# Mount repository location
|
|
- "${BACKUP_PATH}:/repository"
|
|
# Restore path
|
|
- "${RESTORE_PATH}:/restore"
|
|
# Mount local folders to snapshot
|
|
- "${SOURCE_PATH}:/data:ro"
|
|
restart: "unless-stopped"
|