Add Rallly

This commit is contained in:
Sam A. 2022-11-07 18:38:08 +01:00
parent b043b95353
commit f71d534afe
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA
4 changed files with 60 additions and 1 deletions

View file

@ -12,6 +12,7 @@ postgres_passwords:
ttrss: xxx ttrss: xxx
keycloak: xxx keycloak: xxx
mastodon: xxx mastodon: xxx
rallly: xxx
membersystem: xxx membersystem: xxx
fider_jwt_secret: xxx fider_jwt_secret: xxx

View file

@ -26,6 +26,7 @@
- mailu - mailu
- portainer - portainer
- mastodon - mastodon
- rallly
- membersystem - membersystem
smtp_host: "postfix" smtp_host: "postfix"

View file

@ -101,12 +101,17 @@ postfix:
- "{{ passit.domain }}" - "{{ passit.domain }}"
- "{{ gitea.domain }}" - "{{ gitea.domain }}"
- "{{ mastodon.domain }}" - "{{ mastodon.domain }}"
- "{{ rallly.domain }}"
- "{{ membersystem.domain }}" - "{{ membersystem.domain }}"
mastodon: mastodon:
domain: "social.{{ base_domain }}" domain: "social.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/mastodon" volume_folder: "{{ volume_root_folder }}/mastodon"
rallly:
domain: "when.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/rallly"
membersystem: membersystem:
domain: "member.{{ base_domain }}" domain: "member.{{ base_domain }}"
django_admins: "Vidir:valberg@orn.li" django_admins: "Vidir:valberg@orn.li"
@ -114,4 +119,4 @@ membersystem:
restic: restic:
user: "datacoop" user: "datacoop"
domain: "restic.cannedtuna.org" domain: "restic.cannedtuna.org"
repository: "datacoop-hevonen" repository: "datacoop-hevonen"

View file

@ -0,0 +1,52 @@
- name: create rallly volume folders
file:
name: "{{ rallly.volume_folder }}/postgres"
state: directory
- name: set up rallly
docker_compose:
project_name: "rallly"
pull: "yes"
definition:
version: "3.8"
services:
postgres:
image: "postgres:14-alpine"
restart: "unless-stopped"
shm_size: "256mb"
networks:
rallly_internal:
volumes:
- "{{ rallly.volume_folder }}/postgres:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: "{{ postgres_passwords.rallly }}"
POSTGRES_DB: "rallly_db"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
labels:
com.centurylinklabs.watchtower.enable: "true"
rallly:
image: "lukevella/rallly:latest"
restart: "unless-stopped"
networks:
rallly_internal:
external_services:
ports:
- "3000:3000"
environment:
DATABASE_URL: "postgres://postgres:{{ postgres_passwords.rallly }}@postgres:5432/rallly_db"
depends_on:
rallly_db:
condition: "service_healthy"
labels:
com.centurylinklabs.watchtower.enable: "true"
networks:
rallly_internal:
internal: true
external_services:
external: true