Hi there,
Many thanks for what seems a great app, very exhaustive and with great performance!
I have set-up my first docker instance. Took me some time to get it working. It is set-up with Traefik and worked great… once! I have kicked it off, set up one local repository through CLI, then one Backblaze repository through UI. Did 2 successfull snapshots. Then I restarted my docker instance, and since then, impossible to start the container. It shut down immediately after boot
Error message I get is:
“Server will allow connections from users whose accounts are stored in the repository.
User accounts can be added using ‘kopia server user add’.
ERROR unable to initialize repository: unable to initialize repository: error opening repository: unable to open repository: invalid repository password”
Here’s my docker compose, both if you have ideas of what is wrong (if error linked to docker), and as well to help other with setting up a docker compose set-up with Traefik:
version: “3”
services:
kopia:
image: kopia/kopia:latest
container_name: “kopia”
hostname: kopia
expose:
- 51515
networks:
- traefik_proxy
environment:
- TZ=Europe/Paris
- UID=1000 # test au lieu de PUID
- GID=100
- memory=“3096m”
- cpus=“2.5”
- KOPIA_PASSWORD=“secret1”
- USER=josse
user: “0:0” # works w 0:0 (not with 65532)
volumes:
- config:/app/config
- cache:/app/cache
- logs:/app/logs
- ./logs/cli-logs:/app/logs/cli-logs
- ./logs/content-logs:/app/logs/content-logs
- /srv/Tech/kopia/data:/app/data
- /srv/Users:/app/Users:ro # my backup sources
- /srv/Multimedia:/app/Multimedia:ro
- /srv/Tech:/app/Tech:ro
labels:
- “traefik.enable=true”
- “traefik.http.routers.kopia.rule=Host(kopia.domainname.fr
)”
- “traefik.http.routers.kopia.entrypoints=http,https”
- “traefik.http.routers.kopia.tls=true”
- “traefik.http.routers.kopia.tls.certresolver=acme”
- “diun.enable=true”
entrypoint: [“/app/kopia”, “server”, “–insecure”, “–address=0.0.0.0:51515”, “–override-username=username@kopia”, “–server-username=username@kopia”, “–server-password=secret2”, “–override-hostname=kopia-server”]
networks:
default:
traefik_proxy:
external:
name: traefik_proxy
volumes:
config:
cache:
logs: