Add volumes for yore and yore DB
All checks were successful
Check / Lint Ansible Files (push) Successful in 4m59s

This commit is contained in:
Paul Brinkmeier 2025-10-07 18:21:08 +02:00
parent 490c4f3fac
commit a712cf786b
4 changed files with 16 additions and 2 deletions

View File

@ -23,4 +23,4 @@ to avoid checking for a new version every single run.
- [x] Migrate to `community.docker.docker_compose_v2` (`v1` is deprecated)
- [x] Nix Gitea Action runner
- [x] Install but disable zomboid server
- [ ] Download volume for yore
- [x] Download volume for yore

View File

@ -13,3 +13,6 @@ gods_users:
- name: caddy
uid: 42002
state: present
- name: yore
uid: 42004
state: present

View File

@ -85,6 +85,8 @@
user: 1000
- name: nix_runner_home_node
user: 1000
- name: yore_data
user: yore
# Since some docker-compose configuration might want to pull
# images from the Gitea package repository, we need to ensure
# that Gitea is reachable before those configurations are deployed.

View File

@ -1,12 +1,19 @@
services:
yore:
image: git.pbrinkmeier.de/paul/yore:0.0.5
image: git.pbrinkmeier.de/paul/yore:0.0.8
restart: always
environment:
# For dbmate (migrations)
DATABASE_URL: "postgres://yore:${YORE_DB_PASSWORD}@yore_db/yore-db?sslmode=disable&search_path=public"
# For yore itself
YORE_DB: "host=yore_db dbname=yore-db user=yore password=${YORE_DB_PASSWORD}"
YORE_DOWNLOAD_DIR: /data/downloads
YORE_DBMATE_DIR: /data/dbmate
user: 42004:42004
volumes:
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- /var/lib/pbri/docker/yore_data:/data
yore_db:
image: postgres:17-alpine
@ -15,6 +22,8 @@ services:
POSTGRES_DB: yore-db
POSTGRES_USER: yore
POSTGRES_PASSWORD: "${YORE_DB_PASSWORD}"
volumes:
- /var/lib/pbri/docker/yore_db:/var/lib/postgresql/data
networks: