From 025b7cdc22b3094f34dab378ab5bc1f9bbf19773 Mon Sep 17 00:00:00 2001 From: Lancelot Date: Mon, 23 Dec 2024 22:13:40 +0100 Subject: [PATCH] Add dynamic compose for getashell (#6112) --- apps/getashell/config.json | 5 +++-- apps/getashell/docker-compose.json | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 apps/getashell/docker-compose.json diff --git a/apps/getashell/config.json b/apps/getashell/config.json index 98b18be3ba..cbfe03a1d5 100644 --- a/apps/getashell/config.json +++ b/apps/getashell/config.json @@ -3,9 +3,10 @@ "name": "Get A Shell", "available": true, "exposable": true, + "dynamic_config": true, "port": 8281, "id": "getashell", - "tipi_version": 12, + "tipi_version": 13, "version": "1.1.3", "categories": ["utilities"], "description": "Simple web ui to create ssh shells for testing.", @@ -34,5 +35,5 @@ ], "supported_architectures": ["arm64", "amd64"], "created_at": 1691943801422, - "updated_at": 1725904870000 + "updated_at": 1734908260001 } diff --git a/apps/getashell/docker-compose.json b/apps/getashell/docker-compose.json new file mode 100644 index 0000000000..3181bc0020 --- /dev/null +++ b/apps/getashell/docker-compose.json @@ -0,0 +1,27 @@ +{ + "services": [ + { + "name": "getashell", + "image": "ghcr.io/steveiliop56/getashell:v1.1.3", + "isMain": true, + "internalPort": 3000, + "extraHosts": ["host.docker.internal:host-gateway"], + "environment": { + "USERNAME": "${GETASHELL_USERNAME}", + "PASSWORD": "${GETASHELL_PASSWORD}", + "SECRET_KEY": "${GETASHELL_SECRET_KEY}" + }, + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data/", + "containerPath": "/app/data" + }, + { + "hostPath": "/var/run/docker.sock", + "containerPath": "/var/run/docker.sock", + "readOnly": true + } + ] + } + ] +}