Add secrets and env file for Rally

This commit is contained in:
Sam A. 2022-11-07 19:05:49 +01:00
parent f71d534afe
commit dd6b29bccd
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
3 changed files with 24 additions and 4 deletions

View File

@ -50,5 +50,8 @@ mastodon_secrets:
vapid_private_key: xxx
vapid_public_key: xxx
rallly_secrets:
secret_password: xxx
membersystem_secrets:
secret_key: xxx

View File

@ -0,0 +1,9 @@
NEXT_PUBLIC_BASE_URL="https://:{{ rallly.domain }}"
DATABASE_URL="postgres://postgres:{{ postgres_passwords.rallly }}@postgres:5432/rallly_db"
SECRET_PASSWORD="{{ rallly_secrets.secret_password }}"
SUPPORT_EMAIL="noreply@{{ rallly.domain }}"
SMTP_HOST="{{ smtp_host }}"
SMTP_PORT="{{ smtp_port }}"
SMTP_SECURE="false"
SMTP_USER=
SMTP_PWD=

View File

@ -1,9 +1,14 @@
- name: create rallly volume folders
- name: Create rallly volume folders
file:
name: "{{ rallly.volume_folder }}/postgres"
state: directory
- name: set up rallly
- name: Copy Rallly environment file
template:
src: files/configs/rallly/env_file
dest: "{{ rallly.volume_folder }}/env_file"
- name: Set up rallly
docker_compose:
project_name: "rallly"
pull: "yes"
@ -35,13 +40,14 @@
networks:
rallly_internal:
external_services:
postfix:
ports:
- "3000:3000"
environment:
DATABASE_URL: "postgres://postgres:{{ postgres_passwords.rallly }}@postgres:5432/rallly_db"
depends_on:
rallly_db:
condition: "service_healthy"
env_file:
- "{{ rallly.volume_folder }}/env_file"
labels:
com.centurylinklabs.watchtower.enable: "true"
@ -50,3 +56,5 @@
internal: true
external_services:
external: true
postfix:
external: true