Skip to content

Setup Kopia

No Longer Active

Overview

Kopia is a fast and secure open-source backup/restore tool that allows you to create encrypted snapshots of your data and save the snapshots to remote or cloud storage of your choice, to network-attached storage or server, or locally on your machine. Kopia does not 'image' your whole machine. Rather, Kopia allows you to backup/restore any and all files/directories that you deem are important or critical.

Important Docker Files

.env file

.env
NAME=kopia
APPDATA=
PHOTOS=
DOMAIN=
SECRET=
USER=
HOSTNAME=${NAME}.${DOMAIN}
PASS=
PORT=51515

docker-compose.yml file

docker-compose.yml
services:
    kopia:
        image: kopia/kopia
        container_name: ${NAME}
        restart: unless-stopped
        command:
            - server
            - start
            - --disable-csrf-token-checks
            - --insecure
            - --address=0.0.0.0:51515
            - --without-password
        environment:
            KOPIA_PASSWORD: ${SECRET}
            USER: ${USER}
        networks:
          - proxy
        dns:
          - '10.1.10.1'
        volumes:
          - ${APPDATA}/${NAME}/config:/app/config
          - ${APPDATA}/${NAME}/cache:/app/cache
          - ${APPDATA}/${NAME}/logs:/app/logs
          - ${APPDATA}/:/data:ro
          - ${PHOTOS}/:/photos:ro
          - ${APPDATA}/${NAME}/repository:/repository
          - ${APPDATA}/${NAME}/temp:/tmp:shared
        labels:
          swag: enable
          swag_address: ${NAME}
          swag_port: ${PORT}
          swag_proto: http
          swag_url: ${NAME}.${DOMAIN}
          swag_auth: authelia
          swag_auth_bypass: /api
          com.centurylinklabs.watchtower.enable: true
networks:
  proxy:
    external: true

Start the Container

Start the Container
docker compose up -d