forked from data.coop/ansible
Add secrets and env file for Rally
This commit is contained in:
parent
f71d534afe
commit
dd6b29bccd
|
@ -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
|
||||||
|
|
9
roles/docker/files/configs/rallly/env_file
Normal file
9
roles/docker/files/configs/rallly/env_file
Normal 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=
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue