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 untrusted user: 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_private_key: xxx
vapid_public_key: xxx vapid_public_key: xxx
rallly_secrets:
secret_password: xxx
membersystem_secrets: membersystem_secrets:
secret_key: xxx 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: file:
name: "{{ rallly.volume_folder }}/postgres" name: "{{ rallly.volume_folder }}/postgres"
state: directory 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: docker_compose:
project_name: "rallly" project_name: "rallly"
pull: "yes" pull: "yes"
@ -35,13 +40,14 @@
networks: networks:
rallly_internal: rallly_internal:
external_services: external_services:
postfix:
ports: ports:
- "3000:3000" - "3000:3000"
environment:
DATABASE_URL: "postgres://postgres:{{ postgres_passwords.rallly }}@postgres:5432/rallly_db"
depends_on: depends_on:
rallly_db: rallly_db:
condition: "service_healthy" condition: "service_healthy"
env_file:
- "{{ rallly.volume_folder }}/env_file"
labels: labels:
com.centurylinklabs.watchtower.enable: "true" com.centurylinklabs.watchtower.enable: "true"
@ -50,3 +56,5 @@
internal: true internal: true
external_services: external_services:
external: true external: true
postfix:
external: true