Add trilium notes
This commit is contained in:
parent
5b6712c649
commit
b15fd369b6
2 changed files with 18 additions and 0 deletions
16
roles/trilium/tasks/main.yml
Normal file
16
roles/trilium/tasks/main.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: Create a volume
|
||||
become: true
|
||||
community.docker.docker_volume:
|
||||
name: trilium_data
|
||||
- name: Install the container
|
||||
become: true
|
||||
community.docker.docker_container:
|
||||
name: trilium-server
|
||||
image: "triliumnext/notes:{{ trilium_version }}"
|
||||
ports:
|
||||
- "127.0.0.1:4637:8080/tcp"
|
||||
mounts:
|
||||
- source: trilium_data
|
||||
target: /home/node/trilium-data
|
||||
restart_policy: always
|
||||
2
roles/trilium/vars/main/defaults.yml
Normal file
2
roles/trilium/vars/main/defaults.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
trilium_version: v0.90.12
|
||||
Loading…
Add table
Add a link
Reference in a new issue