From 8583c242468cad5e2320798ad84006f86eeaa8d2 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 6 May 2022 16:12:25 +0100 Subject: [PATCH] Initial import --- .env.sample | 8 ++++++++ .gitignore | 1 + README.md | 24 ++++++++++++++++++++++++ compose.yml | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..82529bf --- /dev/null +++ b/.env.sample @@ -0,0 +1,8 @@ +TYPE=jellyfin + +DOMAIN=jellyfin.example.com + +## Domain aliases +#EXTRA_DOMAINS=', `www.jellyfin.example.com`' + +LETS_ENCRYPT_ENV=production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..57b25f1 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# jellyfin + +> One line description of the recipe + + + +* **Category**: Apps +* **Status**: 0 +* **Image**: [`jellyfin`](https://hub.docker.com/r/jellyfin), 4, upstream +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No + + + +## Quick start + +* `abra app new jellyfin --secrets` +* `abra app config ` +* `abra app deploy ` + +For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..a2c3805 --- /dev/null +++ b/compose.yml @@ -0,0 +1,32 @@ +--- +version: "3.8" + +services: + app: + image: nginx:1.20.0 + networks: + - proxy + deploy: + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" + - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" + - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" + ## Redirect from EXTRA_DOMAINS to DOMAIN + #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" + #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" + #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" + - "coop-cloud.${STACK_NAME}.version=" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m + +networks: + proxy: + external: true