add beaver to stack

This commit is contained in:
Phil 2025-01-04 11:38:36 -07:00
parent 0f33ce5013
commit 27564a35e4
5 changed files with 48 additions and 0 deletions

View File

@ -33,6 +33,8 @@
ip: "152.53.36.98"
- name: loclog
ip: "152.53.36.98"
- name: habits
ip: "152.53.36.98"
- name: nerder.land
dns_records:
- name: "forms"

View File

@ -41,6 +41,10 @@ phlog.thesatelliteoflove.com {
reverse_proxy ghost-1-ghost-1:2368
}
habits.thesatelliteoflove.com {
reverse_proxy beaverhabits:8080
}
code.thesatelliteoflove.com {
reverse_proxy authentik-server-1:9000
}

View File

@ -0,0 +1,19 @@
- name: make beaver directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/beaver
- name: Template out the compose file
ansible.builtin.template:
src: beaver-compose.yml.j2
dest: /opt/stacks/beaver/compose.yml
owner: root
mode: 644
- name: deploy beaver stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/beaver
files:
- compose.yml

View File

@ -146,3 +146,6 @@
import_tasks: dawarich.yml
tags: dawarich
- name: Install beaver
import_tasks: beaver.yml
tags: beaver

View File

@ -0,0 +1,20 @@
services:
beaverhabits:
container_name: beaverhabits
user: 1000:1000
environment:
# See the note below to find all the environment variables
- HABITS_STORAGE=USER_DISK # DATABASE stores in a single SQLite database named habits.db. USER_DISK option saves in a local json file.
- MAX_USER_COUNT=1
volumes:
- ./data:/app/.user/ # Change directory to match your docker file scheme.
restart: unless-stopped
image: daya0576/beaverhabits:latest
volumes:
data:
networks:
default:
external: true
name: lava