Very initial setup, untested :)

This commit is contained in:
Flancian 2023-04-08 22:02:56 +02:00
parent 4b79793111
commit f928656f5a
3 changed files with 31 additions and 23 deletions

View File

@ -1,8 +1,8 @@
TYPE={{ .Name }} TYPE=agora
DOMAIN={{ .Name }}.example.com DOMAIN=agor.ai
## Domain aliases ## Domain aliases
#EXTRA_DOMAINS=', `www.{{ .Name }}.example.com`' #EXTRA_DOMAINS=', `www.agora.example.com`'
LETS_ENCRYPT_ENV=production LETS_ENCRYPT_ENV=production

View File

@ -1,24 +1,31 @@
# {{ .Name }} # Agora
{{ .Description }} > An Agora is a Knowledge Commons.
<!-- metadata --> <!-- metadata -->
* **Category**: {{ .Category }} * **Category**: Apps
* **Status**: {{ .Status }} * **Status**: 0
* **Image**: {{ .Image }} * **Image**: [`agora`](https://hub.docker.com/r/agora), 4, upstream
* **Healthcheck**: {{ .Healthcheck }} * **Healthcheck**: No
* **Backups**: {{ .Backups }} * **Backups**: No
* **Email**: {{ .Email }} * **Email**: No
* **Tests**: {{ .Tests }} * **Tests**: No
* **SSO**: {{ .SSO }} * **SSO**: No
<!-- endmetadata --> <!-- endmetadata -->
## Quick start ## Quick start
* `abra app new {{ .Name }} --secrets` * `abra app new agora --secrets`
* Currently --secrets doesn't do anything.
* `abra app config <app-name>` * `abra app config <app-name>`
* WIP :)
* `abra app deploy <app-name>` * `abra app deploy <app-name>`
* 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.

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: nginx:1.20.0 image: git.coopcloud.tech/flancian/agora
networks: networks:
- proxy - proxy
deploy: deploy:
@ -11,7 +11,7 @@ services:
condition: on-failure condition: on-failure
labels: labels:
- "traefik.enable=true" - "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}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "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.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=" - "coop-cloud.${STACK_NAME}.version="
healthcheck: # Disabling health checks during development as per https://docs.coopcloud.tech/maintainers/handbook/.
test: ["CMD", "curl", "-f", "http://localhost"] # healthcheck:
interval: 30s # test: ["CMD", "curl", "-f", "http://localhost"]
timeout: 10s # interval: 30s
retries: 10 # timeout: 10s
start_period: 1m # retries: 10
# start_period: 1m
networks: networks:
proxy: proxy: