Commit initial : infrastructure Ansible pour homeserver
- Playbooks Ansible avec rôles (common, cockpit, docker, services) - 30+ stacks Docker Compose avec reverse proxy Traefik - Ansible Vault pour gestion secrets - Intégration CrowdSec pour détection intrusions - Versions images Docker fixées pour reproductibilité
This commit is contained in:
commit
fd01ea59ee
125 changed files with 4768 additions and 0 deletions
39
stacks/kavita/Dockerfile
Normal file
39
stacks/kavita/Dockerfile
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
FROM golang:1.21-alpine
|
||||
|
||||
# Installation des dépendances système
|
||||
RUN apt-get update && apt-get install -y \
|
||||
bash \
|
||||
gnupg \
|
||||
software-properties-common \
|
||||
python3 \
|
||||
python3-pip \
|
||||
wget \
|
||||
git \
|
||||
build-essential \
|
||||
libmupdf-dev \
|
||||
poppler-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Compiler cbconvert depuis les sources avec la bonne commande
|
||||
RUN CGO_ENABLED=1 go install github.com/gen2brain/cbconvert/cmd/cbconvert@latest
|
||||
|
||||
# Installation de F2 via Go (dernière version)
|
||||
RUN go install github.com/ayoisaiah/f2/v2/cmd/f2@latest
|
||||
|
||||
# Ajout du PATH Go
|
||||
ENV PATH="/root/go/bin:${PATH}"
|
||||
|
||||
# Création des répertoires de travail
|
||||
WORKDIR /app
|
||||
COPY kavita_script.py /app/
|
||||
|
||||
# Création d'un script wrapper
|
||||
RUN echo '#!/bin/bash\n\
|
||||
python3 /app/kavita_script.py\n' > /app/entrypoint.sh && \
|
||||
chmod +x /app/entrypoint.sh
|
||||
|
||||
# Création du point de montage pour les volumes
|
||||
VOLUME ["/mnt/storage/kavita"]
|
||||
|
||||
# Exécution du script
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue