mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
store karin data on host fs
This commit is contained in:
parent
40061eebc3
commit
226e5a40b0
3 changed files with 15 additions and 0 deletions
|
|
@ -1,5 +1,12 @@
|
||||||
# Infra setup
|
# 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??
|
## server??
|
||||||
|
|
||||||
Each VPS has a caddy running _on the host_, not inside docker. It's the entrypoint to the stuff.
|
Each VPS has a caddy running _on the host_, not inside docker. It's the entrypoint to the stuff.
|
||||||
|
|
|
||||||
|
|
@ -123,3 +123,9 @@
|
||||||
project_src: /apps
|
project_src: /apps
|
||||||
state: present
|
state: present
|
||||||
restarted: true
|
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
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,8 @@ services:
|
||||||
container_name: karin-bot-db
|
container_name: karin-bot-db
|
||||||
image: "mongo:latest"
|
image: "mongo:latest"
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- "/apps/karin-bot/data:/data/db"
|
||||||
env_file:
|
env_file:
|
||||||
- "/apps/karin-bot/.env"
|
- "/apps/karin-bot/.env"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue