-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup_lanraragi.yml
34 lines (32 loc) · 1017 Bytes
/
setup_lanraragi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Set up LANraragi
hosts: nuc
become: yes
tasks:
- name: Create bind mounts
file:
path: "{{ item }}"
state: directory
mode: "0755"
loop:
- /home/rex/8tb/lanraragi
- /home/rex/8tb/lanraragi/content
- /home/rex/8tb/lanraragi/thumb
- /home/rex/8tb/lanraragi/database
become: no
- name: Create LANraragi container
docker_container:
name: lanraragi
image: difegue/lanraragi
ports:
- "7070:3000"
volumes:
- /home/rex/8tb/lanraragi/content:/home/koyomi/lanraragi/content
- /home/rex/8tb/lanraragi/thumb:/home/koyomi/lanraragi/content/thumb
- /home/rex/8tb/lanraragi/database:/home/koyomi/lanraragi/database
restart_policy: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--no-check-certificate", "--spider", "http://lrr.lan"]
interval: 1m
timeout: 10s
retries: 3