Migrate watchstate + jellyseerr to replicant

This commit is contained in:
Maddox 2026-01-26 12:09:57 +00:00
parent 6b36ff0dc2
commit 45aee7ecce
4 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,26 @@
services:
jellyseerr:
image: fallenbagel/jellyseerr:latest
container_name: jellyseerr
environment:
- LOG_LEVEL=info
- TZ=America/Indiana/Indianapolis
volumes:
- ./config:/app/config
ports:
- "5055:5055"
restart: unless-stopped
networks:
- proxy
deploy:
resources:
limits:
memory: 1G
cpus: '1.0'
labels:
- "autoheal=true"
- "com.centurylinklabs.watchtower.enable=true"
networks:
proxy:
external: true

View file

@ -0,0 +1,31 @@
services:
watchstate:
image: ghcr.io/arabcoders/watchstate:latest
container_name: watchstate
user: "1000:1000"
environment:
- TZ=America/Indiana/Indianapolis
volumes:
- ./config:/config:rw
ports:
- "8585:8080"
restart: unless-stopped
networks:
- proxy
deploy:
resources:
limits:
memory: 512M
cpus: '1.0'
labels:
- "autoheal=true"
- "com.centurylinklabs.watchtower.enable=true"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/v1/api/system/healthcheck || exit 1"]
interval: 30s
timeout: 10s
retries: 3
networks:
proxy:
external: true

View file

@ -0,0 +1,32 @@
---
- name: Deploy Jellyseerr to replicant
hosts: replicant
vars:
service_name: jellyseerr
service_dir: /home/maddox/docker/appdata/{{ service_name }}
compose_src: "{{ playbook_dir }}/../compose-files/replicant/{{ service_name }}"
tasks:
- name: Create service directory
ansible.builtin.file:
path: "{{ service_dir }}"
state: directory
mode: '0755'
- name: Create config subdirectory
ansible.builtin.file:
path: "{{ service_dir }}/config"
state: directory
mode: '0755'
- name: Copy docker-compose.yml
ansible.builtin.copy:
src: "{{ compose_src }}/docker-compose.yml"
dest: "{{ service_dir }}/docker-compose.yml"
mode: '0644'
- name: Deploy container
community.docker.docker_compose_v2:
project_src: "{{ service_dir }}"
state: present
pull: always

View file

@ -0,0 +1,34 @@
---
- name: Deploy Watchstate to replicant
hosts: replicant
vars:
service_name: watchstate
service_dir: /home/maddox/docker/appdata/{{ service_name }}
compose_src: "{{ playbook_dir }}/../compose-files/replicant/{{ service_name }}"
tasks:
- name: Create service directory
ansible.builtin.file:
path: "{{ service_dir }}"
state: directory
mode: '0755'
- name: Create config subdirectory
ansible.builtin.file:
path: "{{ service_dir }}/config"
state: directory
owner: "1000"
group: "1000"
mode: '0755'
- name: Copy docker-compose.yml
ansible.builtin.copy:
src: "{{ compose_src }}/docker-compose.yml"
dest: "{{ service_dir }}/docker-compose.yml"
mode: '0644'
- name: Deploy container
community.docker.docker_compose_v2:
project_src: "{{ service_dir }}"
state: present
pull: always