Initial commit with kopia app working

This commit is contained in:
cody conder
2025-11-08 00:18:25 -06:00
commit 801174585b
34 changed files with 1380 additions and 0 deletions

View File

@@ -0,0 +1,112 @@
{
"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=${PASSWORD}"
],
"environment": [
{
"key": "KOPIA_PASSWORD",
"value": "${PASSWORD}"
},
{
"key": "KOPIA_SERVER_FINGERPRINT",
"value": "${KOPIA_SERVER_FINGERPRINT}"
},
{
"key": "TZ",
"value": "${TZ}"
},
{
"key": "USER",
"value": "${USER}"
}
],
"addPorts": [
{"containerPort":51515,
"hostPort":"$APP_PORT",
"tcp":true,
"udp":false}
],
"volumes": [
{
"hostPath": "/home/${USER}/kopia/certs",
"containerPath": "/app/certs",
"readOnly": false,
"shared": false,
"private": false
},
{
"hostPath": "/home/${USER}/kopia/config",
"containerPath": "/app/config",
"readOnly": false,
"shared": false,
"private": false
},
{
"hostPath": "/home/${USER}/kopia/cache",
"containerPath": "/app/cache",
"readOnly": false,
"shared": false,
"private": false
},
{
"hostPath": "/home/${USER}/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/${USER}",
"containerPath": "/data/${USER}",
"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"
]
}
]
}