From 5986e4521d504dd6d6b381a444e78b2c24cd8409 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Sun, 24 Nov 2024 22:50:56 -0500 Subject: [PATCH] Initial commit Basic settings for runtipit with a tempalte --- .env.local.tmpl | 5 +++++ .gitignore | 1 + _template/app.env | 1 + _template/docker-compose.yml | 19 +++++++++++++++++++ tipi-compose.yml | 14 ++++++++++++++ 5 files changed, 40 insertions(+) create mode 100755 .env.local.tmpl create mode 100644 .gitignore create mode 100644 _template/app.env create mode 100644 _template/docker-compose.yml create mode 100755 tipi-compose.yml diff --git a/.env.local.tmpl b/.env.local.tmpl new file mode 100755 index 0000000..3f7e9f7 --- /dev/null +++ b/.env.local.tmpl @@ -0,0 +1,5 @@ +ACME_EMAIL= +CF_DNS_API_TOKEN= + +SZ_USER_UID= +SZ_USER_GID= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11ee758 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env.local diff --git a/_template/app.env b/_template/app.env new file mode 100644 index 0000000..4d0d570 --- /dev/null +++ b/_template/app.env @@ -0,0 +1 @@ +# VARIABLE=value #comment# VARIABLE=value #comment diff --git a/_template/docker-compose.yml b/_template/docker-compose.yml new file mode 100644 index 0000000..b6eb722 --- /dev/null +++ b/_template/docker-compose.yml @@ -0,0 +1,19 @@ +services: + : + environment: + # RUNTIPI Environment + RUNTIPI_APP_PORT: "${APP_PORT}" + RUNTIPI_APP_ID: "${APP_ID}" + RUNTIPI_APP_DATA_DIR: "${APP_DATA_DIR}" + RUNTIPI_APP_EXPOSED: "${APP_EXPOSED}" + RUNTIPI_APP_DOMAIN: "${APP_DOMAIN}" + RUNTIPI_APP_HOST: "${APP_HOST}" + labels: + # Websecure + traefik.http.routers..middlewares: authentik_sysmgr@file + # traefik.http.routers.-more.rule: Host(`.lksz.me`)${APP_ROUTE_OPTIONAL:-} + # traefik.http.routers.-more.entrypoints: websecure + # traefik.http.routers.-more.service: + # traefik.http.routers.-more.middlewares: authentik_sysmgr@file + # traefik.http.routers.-more.tls: true + # traefik.http.routers.-more.tls.certresolver: myresolver \ No newline at end of file diff --git a/tipi-compose.yml b/tipi-compose.yml new file mode 100755 index 0000000..944273a --- /dev/null +++ b/tipi-compose.yml @@ -0,0 +1,14 @@ +services: + runtipi-reverse-proxy: + ports: + - 8080:8080 + command: + - '--providers.docker' + - '--providers.file.directory=/srv/runtipi/traefik/dynamic' + - '--certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}' + - '--certificatesresolvers.myresolver.acme.storage=/shared/acme.json' + - '--certificatesresolvers.myresolver.acme.dnshallenge.entrypoint=cloudflare' + environment: + CF_API_EMAIL: "${ACME_EMAIL}" + CF_DNS_API_TOKEN: "${CF_DNS_API_TOKEN}" +