store karin data on host fs

This commit is contained in:
nora 2023-08-28 15:12:05 +02:00
parent 40061eebc3
commit 226e5a40b0
3 changed files with 15 additions and 0 deletions

View file

@ -1,5 +1,12 @@
# Infra setup
## TODOS
There are many todos here. First, grep this codebase for `todo`. In addition to that:
- backups
- data replication across the two servers. i have two servers, let's use that power. maybe rsync or something like that?
## server??
Each VPS has a caddy running _on the host_, not inside docker. It's the entrypoint to the stuff.

View file

@ -123,3 +123,9 @@
project_src: /apps
state: present
restarted: true
#####
# POST: things after starting up
#####
- name: Run CORS db migrations
ansible.builtin.shell: |
docker exec -w /app/server cors-school-server diesel migration run

View file

@ -69,6 +69,8 @@ services:
container_name: karin-bot-db
image: "mongo:latest"
restart: always
volumes:
- "/apps/karin-bot/data:/data/db"
env_file:
- "/apps/karin-bot/.env"
networks: