diff --git a/apps/kopia/config.json b/apps/kopia/config.json new file mode 100644 index 0000000..753f0e6 --- /dev/null +++ b/apps/kopia/config.json @@ -0,0 +1,39 @@ +{ + "name": "kopia", + "min_tipi_version": "4.5.0", + "available": true, + "port": 51515, + "exposable": true, + "dynamic_config": true, + "id": "kopia", + "description": "", + "tipi_version": 1, + "version": "20251023.0.52914", + "categories": ["utilities"], + "short_desc": "", + "author": "kopia", + "dynamic":true, + "source": "https://github.com/kopia/kopia", + "website": "https://kopia.io", + "form_fields": [ + {"type":"text", + "label":"username", + "required":true, + "env_variable":"USER"}, + {"type":"text", + "label":"TZ", + "required":true, + "env_variable":"TZ"}, + {"type":"password", + "label":"Password", + "required":true, + "env_variable":"KOPIA_PASSWORD"}, + {"type":"random", + "label":"FingerPrint", + "max":64, + "min":64, + "required":false, + "env_variable":"KOPIA_SERVER_FINGERPRINT"} + ], + "supported_architectures": ["amd64"] +} diff --git a/apps/kopia/docker-compose.json b/apps/kopia/docker-compose.json new file mode 100644 index 0000000..7ac3711 --- /dev/null +++ b/apps/kopia/docker-compose.json @@ -0,0 +1,90 @@ +{ + "schemaVersion": 2, + "services": [ + { + "name": "kopia", + "image": "kopia/kopia:latest", + "command": [ + "server", + "start", + "--disable-csrf-token-checks", + "--tls-cert-file=/app/certs/my.cert", + "--tls-key-file=/app/certs/my.key", + "--address=0.0.0.0:51515", + "--server-username=$USER", + "--server-password=$KOPIA_PASSWORD" + ], + "environment": [ ], + "internalPort": 51515, + "volumes": [ + { + "hostPath": "/home/ccondor/kopia/certs", + "containerPath": "/app/certs", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/home/ccondor/kopia/config", + "containerPath": "/app/config", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/home/ccondor/kopia/cache", + "containerPath": "/app/cache", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/home/ccondor/kopia/logs", + "containerPath": "/app/logs", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/mnt/Backups/Kopia", + "containerPath": "/repository", + "readOnly": false, + "shared": false, + "private": false + }, + { + "hostPath": "/home/ccondor", + "containerPath": "/data/ccondor", + "readOnly": true, + "shared": false, + "private": false + }, + { + "hostPath": "/mnt/ext", + "containerPath": "/data/ext", + "readOnly": true, + "shared": false, + "private": false + }, + { + "hostPath": "/media/Cinema", + "containerPath": "/data/Cinema", + "readOnly": true, + "shared": false, + "private": false + } + ], + "hostname": "kopia-server", + "devices": [ + "/dev/fuse:/dev/fuse:rwm" + ], + "privileged": true, + "capAdd": [ + "SYS_ADMIN" + ], + "securityOpt": [ + "apparmor:unconfined" + ] + } + ] +}