From a459e7bbd14b9936952ec4267309cc05f7ed69be Mon Sep 17 00:00:00 2001 From: johackim Date: Mon, 9 Dec 2024 13:29:38 +0100 Subject: [PATCH] feat: add rallly --- stacks/rallly.yml | 52 +++++++++++++++++++++++++++++++++++++++++++ templates.json | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 stacks/rallly.yml diff --git a/stacks/rallly.yml b/stacks/rallly.yml new file mode 100644 index 0000000..cd23534 --- /dev/null +++ b/stacks/rallly.yml @@ -0,0 +1,52 @@ +# DOMAIN=example.com docker stack deploy -c rallly.yml rallly + +services: + web: + image: lukevella/rallly:${VERSION:-3.11.2} + environment: + - DATABASE_URL=postgres://rallly:myp@ssw0rd@postgres/rallly + - NEXT_PUBLIC_BASE_URL=${SCHEME:-https}://${DOMAIN:-rallly.localhost} + - NEXTAUTH_URL=${SCHEME:-https}://${DOMAIN:-rallly.localhost} + - NEXT_PUBLIC_SELF_HOSTED=${NEXT_PUBLIC_SELF_HOSTED:-true} + - SECRET_PASSWORD=${SECRET_PASSWORD:-XzAKLTuVLv0I1DtXx6/LsNUEttSsZ5Zr} + - SUPPORT_EMAIL=${SMTP_FROM:-admin@example.com} + - SMTP_HOST=${SMTP_HOST} + - SMTP_USER=${SMTP_USERNAME} + - SMTP_PWD=${SMTP_PASSWORD} + - SMTP_PORT=${SMTP_PORT:-587} + - SMTP_SECURE=${SMTP_SSL:-false} + deploy: + labels: + - traefik.enable=true + - traefik.http.routers.rallly-${NUMBER:-1}.rule=Host(`${DOMAIN:-rallly.localhost}`) + - traefik.http.routers.rallly-${NUMBER:-1}.entrypoints=${SCHEME:-https} + - traefik.http.routers.rallly-${NUMBER:-1}.service=rallly-${NUMBER:-1} + - traefik.http.routers.rallly-${NUMBER:-1}.tls.certresolver=letsencrypt + - traefik.http.services.rallly-${NUMBER:-1}.loadbalancer.server.port=3000 + networks: + - internal + - traefik + + postgres: + image: postgres:${POSTGRES_VERSION:-12-alpine} + environment: + - POSTGRES_DB=rallly + - POSTGRES_USER=rallly + - POSTGRES_PASSWORD=myp@ssw0rd + healthcheck: + test: ["CMD", "pg_isready", "-U", "rallly"] + volumes: + - ${VOLUME_PATH}postgres:/var/lib/postgresql/data + networks: + - internal + +volumes: + postgres: + +networks: + internal: + driver: overlay + attachable: true + traefik: + external: true + name: traefik-net diff --git a/templates.json b/templates.json index f7a1ed7..99a787b 100644 --- a/templates.json +++ b/templates.json @@ -2356,6 +2356,62 @@ "url": "https://github.com/ethibox/awesome-stacks", "stackfile": "stacks/listmonk.yml" } + }, + { + "type": 2, + "title": "Rallly", + "description": "Outil de planification de réunion simple", + "categories": ["Planification"], + "enabled": true, + "trial": 7, + "price": 19, + "logo": "https://i.imgur.com/m2dqLMM.png", + "website": "https://rallly.co/", + "repository": { + "url": "https://github.com/ethibox/awesome-stacks", + "stackfile": "stacks/rallly.yml" + }, + "env": [ + { + "name": "SMTP_HOST", + "label": "SMTP Host" + }, + { + "name": "SMTP_PORT", + "label": "SMTP Port", + "value": "587", + "type": "number" + }, + { + "name": "SMTP_FROM", + "label": "SMTP From", + "type": "email" + }, + { + "name": "SMTP_USERNAME", + "label": "SMTP Username" + }, + { + "name": "SMTP_PASSWORD", + "label": "SMTP password", + "type": "password" + }, + { + "name": "SMTP_SSL", + "label": "SMTP SSL", + "type": "select", + "select": [ + { + "text": "non", + "value": "false" + }, + { + "text": "oui", + "value": "true" + } + ] + } + ] } ] }