Kopia
services:
kopia:
image: kopia/kopia:latest
container_name: Kopia
user: "0:0"
restart: "unless-stopped"
privileged: true
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse:/dev/fuse:rwm
command:
- server
- start
- --insecure
- --htpasswd-file=/app/htpasswd/.htpasswd ##To generate the htpasswd go to https://hostingcanada.org/htpasswd-generator/ . Use Bcrypt and copy paste the output
- --address=0.0.0.0:51515
# - server
# - --disable-csrf-token-checks
# - --tls-cert-file=/srv/Files/Kopia/ssl-certs/fullchain.pem
# - --tls-key-file=/srv/Files/Kopia/ssl-certs/privkey.pem
# - --address=0.0.0.0:51515
- --server-username=xxxxx #needs to match .htpasswd
- --server-password=XXXXXX ##needs to match the one used to generate .htpasswd
ports:
- 51515:51515
volumes:
- /srv/Files/Kopia/shared:/tmp:shared
- /srv/Files/Kopia/config:/app/config
- /srv/Files/Kopia/cache:/app/cache
- /srv/Files/Kopia/logs:/app/logs
- /srv/Files/Kopia/htpasswd:/app/htpasswd
- /srv/Files:/data:ro
environment:
KOPIA_PASSWORD: XXXXXX
TZ: Europe/Paris
USER: xxxxx
### IF you would like to assign hostname and domain name to your server.
# hostname: "XXX"
# domainname: "XXX"
### If you want to assign ip to your container with an existing Docker Network.
### Existing networks name is "Docker" in below example. Just change it with your own.
# networks:
# Docker:
# ipv4_address: aaa.bbb.ccc.ddd
#### If you would like to assign DNS Server
# dns:
# - 8.8.8.8
#
### Existing Networks should be defined as external.
#networks:
# Docker:
# external: true
SFTP :
For known_hosts
cd ~/.ssh/
mv known_hosts known_hosts.bkp
ssh your_username@your_repo_host #eg admin@192.168.1.104 (login then exit)
ssh-keyscan your_repo_host >> my_kopia_know_hosts
cat my_kopia_know_hosts #put that in the data knowhost
Snapshot path:
- /srv/Files:/data:ro
Policies:
Default:
10
48
7
4
24
3
no
Good one:
1
1
7
4
12
1
no
No Comments