From f928656f5a96e46dffb2bf8a1a55da442cab2bae Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 8 Apr 2023 22:02:56 +0200 Subject: [PATCH] Very initial setup, untested :) --- .env.sample | 6 +++--- README.md | 31 +++++++++++++++++++------------ compose.yml | 17 +++++++++-------- 3 files changed, 31 insertions(+), 23 deletions(-) diff --git a/.env.sample b/.env.sample index c079a31..f45f05b 100644 --- a/.env.sample +++ b/.env.sample @@ -1,8 +1,8 @@ -TYPE={{ .Name }} +TYPE=agora -DOMAIN={{ .Name }}.example.com +DOMAIN=agor.ai ## Domain aliases -#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`' +#EXTRA_DOMAINS=', `www.agora.example.com`' LETS_ENCRYPT_ENV=production diff --git a/README.md b/README.md index aa78cfe..ca368b3 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,31 @@ -# {{ .Name }} +# Agora -{{ .Description }} +> An Agora is a Knowledge Commons. -* **Category**: {{ .Category }} -* **Status**: {{ .Status }} -* **Image**: {{ .Image }} -* **Healthcheck**: {{ .Healthcheck }} -* **Backups**: {{ .Backups }} -* **Email**: {{ .Email }} -* **Tests**: {{ .Tests }} -* **SSO**: {{ .SSO }} +* **Category**: Apps +* **Status**: 0 +* **Image**: [`agora`](https://hub.docker.com/r/agora), 4, upstream +* **Healthcheck**: No +* **Backups**: No +* **Email**: No +* **Tests**: No +* **SSO**: No ## Quick start -* `abra app new {{ .Name }} --secrets` +* `abra app new agora --secrets` + * Currently --secrets doesn't do anything. * `abra app config ` + * WIP :) * `abra app deploy ` + * WIP :) -For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). +## Learn more + +For more on running this recipe, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). + +For more on the Agora, please refer to the reference Agora at [`anagora.org`](https://anagora.org) and https://anagora.org/go/agora-chapter. diff --git a/compose.yml b/compose.yml index a2c3805..f4c7cb8 100644 --- a/compose.yml +++ b/compose.yml @@ -3,7 +3,7 @@ version: "3.8" services: app: - image: nginx:1.20.0 + image: git.coopcloud.tech/flancian/agora networks: - proxy deploy: @@ -11,7 +11,7 @@ services: condition: on-failure labels: - "traefik.enable=true" - - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" + - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5017" - "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}" @@ -20,12 +20,13 @@ services: #- "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 + # Disabling health checks during development as per https://docs.coopcloud.tech/maintainers/handbook/. + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost"] + # interval: 30s + # timeout: 10s + # retries: 10 + # start_period: 1m networks: proxy: