karin secrets

This commit is contained in:
nora 2023-08-28 14:58:25 +02:00
parent 9079976bf3
commit 40061eebc3
3 changed files with 10 additions and 0 deletions

View file

@ -60,6 +60,11 @@
path: /apps/karin-bot path: /apps/karin-bot
state: directory state: directory
mode: "u=rwx,g=rx,o=rx" mode: "u=rwx,g=rx,o=rx"
- name: "Copy karin .env secret"
ansible.builtin.copy:
dest: "/apps/karin-bot/.env"
src: "../secrets/karin-bot/.env"
mode: "u=r,g=r,o=r"
# TODO: Mount a volume in the karin-db to this directory # TODO: Mount a volume in the karin-db to this directory
##### #####
# APP: cors-school, /apps/cors-school # APP: cors-school, /apps/cors-school

BIN
secrets/karin-bot/.env Normal file

Binary file not shown.

View file

@ -84,6 +84,11 @@ services:
restart: always restart: always
env_file: env_file:
- "/apps/karin-bot/.env" - "/apps/karin-bot/.env"
environment:
DB_NAME: court_bot
MONGO_URI: "mongodb://karin-bot-db:27017"
RUST_LOG: INFO
PRETTY: "false"
networks: networks:
- internal - internal
#### Cors School #### Cors School