add beaver to stack
This commit is contained in:
parent
0f33ce5013
commit
27564a35e4
2
dns.yml
2
dns.yml
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
19
roles/docker/tasks/beaver.yml
Normal file
19
roles/docker/tasks/beaver.yml
Normal 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
|
@ -146,3 +146,6 @@
|
||||
import_tasks: dawarich.yml
|
||||
tags: dawarich
|
||||
|
||||
- name: Install beaver
|
||||
import_tasks: beaver.yml
|
||||
tags: beaver
|
20
roles/docker/templates/beaver-compose.yml.j2
Normal file
20
roles/docker/templates/beaver-compose.yml.j2
Normal 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
|
Loading…
x
Reference in New Issue
Block a user