Delete Dockerfile.tailscale_pgbouncer

This commit is contained in:
RipleyBooya 2025-03-01 16:25:48 +01:00 committed by GitHub
parent a25c999f23
commit 1029cc0945
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,33 +0,0 @@
# Dockerfile mis à jour pour inclure PgBouncer et conserver Tailscale
FROM alpine:latest
# Installation des paquets nécessaires
RUN apk add --no-cache openssh-client autossh bash logrotate gettext pgbouncer tailscale iptables ip6tables
# Définition des variables d'environnement
ENV SSH_HOST=""
ENV SSH_USER=""
ENV REMOTE_PORTS="127.0.0.1:5432"
ENV LOCAL_PORTS="15432"
ENV PGB_CONFIG="/etc/pgbouncer/pgbouncer.ini"
# Variables supplémentaires pour Tailscale et Logrotate
ENV TAILSCALE_AUTH_KEY=""
ENV TAILSCALE_PARAM=""
ENV LOGROTATE_FREQUENCY="daily"
ENV LOGROTATE_ROTATE="7"
ENV LOGROTATE_COMPRESS="compress"
# Création des répertoires nécessaires
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
RUN mkdir -p /var/log/ssh-tunnel && chmod 777 /var/log/ssh-tunnel
RUN mkdir -p /var/lib/tailscale && chmod 700 /var/lib/tailscale
RUN mkdir -p /etc/pgbouncer
# Copie des fichiers de configuration et des scripts
COPY entrypoint.tailscale_pgbouncer.sh /entrypoint.sh
COPY logrotate.template /logrotate.template
COPY pgbouncer.ini /etc/pgbouncer/pgbouncer.ini
RUN chmod +x /entrypoint.sh
# Commande d'exécution par défaut
CMD ["/entrypoint.sh"]