style: sed 's/\s\+\\$/ \\/'
This commit is contained in:
parent
092e9f6cb1
commit
633e6f4795
@ -1,9 +1,9 @@
|
|||||||
FROM docker.io/nginx:latest as base
|
FROM docker.io/nginx:latest as base
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
cron \
|
cron \
|
||||||
python3-certbot-nginx \
|
python3-certbot-nginx \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY cron.d/ /etc/cron.d/
|
COPY cron.d/ /etc/cron.d/
|
||||||
COPY entrypoint.d/ /docker-entrypoint.d/
|
COPY entrypoint.d/ /docker-entrypoint.d/
|
||||||
|
@ -1 +1 @@
|
|||||||
0 0 * * * root certbot --nginx -q renew
|
0 0 * * * root certbot --nginx renew > /proc/1/fd/1
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM docker.io/debian:12-slim as base
|
FROM docker.io/debian:12-slim as base
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
certbot \
|
certbot \
|
||||||
gettext \
|
gettext \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
WORKDIR /web/
|
WORKDIR /web/
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
for URL in $BASE_URL $OTHER_URLS; do
|
for URL in $BASE_URL $OTHER_URLS; do
|
||||||
certbot certonly -n \
|
certbot certonly -n \
|
||||||
--webroot \
|
--webroot \
|
||||||
-w /var/www/certbot/ \
|
-w /var/www/certbot/ \
|
||||||
--agree-tos \
|
--agree-tos \
|
||||||
--no-eff-email \
|
--no-eff-email \
|
||||||
-m "$EMAIL" \
|
-m "$EMAIL" \
|
||||||
-d "$URL"
|
-d "$URL"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG APP="http://app.com/download"
|
ARG APP="http://app.com/download"
|
||||||
RUN curl -L "$APP" | tar xz --strip-components=1
|
RUN curl -L "$APP" | tar xz --strip-components=1
|
||||||
|
@ -1,23 +1,19 @@
|
|||||||
FROM docker.io/python:3.11-slim as base
|
FROM docker.io/python:3.12-slim as base
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
ENV VIRTUAL_ENV="/opt/venv" \
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PYTHONFAULTHANDLER=1 \
|
|
||||||
PYTHONUNBUFFERED=1 \
|
|
||||||
VIRTUAL_ENV="/opt/venv" \
|
|
||||||
PATH="/opt/venv/bin:$PATH"
|
PATH="/opt/venv/bin:$PATH"
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN python -m venv "$VIRTUAL_ENV"
|
RUN python -m venv "$VIRTUAL_ENV"
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
unzip \
|
unzip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG URL="https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip"
|
ARG URL="https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip"
|
||||||
RUN curl -LO "$URL" \
|
RUN curl -LO "$URL" \
|
||||||
&& unzip bazarr.zip \
|
&& unzip bazarr.zip \
|
||||||
&& pip install -U --no-cache-dir -r requirements.txt \
|
&& pip install -U --no-cache-dir -r requirements.txt \
|
||||||
&& rm bazarr.zip
|
&& rm bazarr.zip
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
FROM docker.io/debian:12-slim
|
FROM docker.io/debian:12-slim
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
bind9 \
|
bind9 \
|
||||||
bind9-dnsutils \
|
bind9-dnsutils \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY named.conf.options /etc/bind/
|
COPY named.conf.options /etc/bind/
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM docker.io/nginx:latest
|
FROM docker.io/nginx:latest
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
cron \
|
cron \
|
||||||
fdroidserver \
|
fdroidserver \
|
||||||
jq \
|
jq \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh /docker-entrypoint.d/99-entrypoint.sh
|
COPY entrypoint.sh /docker-entrypoint.d/99-entrypoint.sh
|
||||||
COPY scripts/ /usr/local/bin/
|
COPY scripts/ /usr/local/bin/
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
(cd /repo/ || exit 1
|
(cd /repo/ || exit 1
|
||||||
fdroid init
|
fdroid init
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "/repo_url/s .* repo_url:\ https://$BASE_URL/repo " \
|
-e "/repo_url/s .* repo_url:\ https://$BASE_URL/repo " \
|
||||||
-e "/repo_name/s .* repo_name:\ \"$REPO_NAME\" " \
|
-e "/repo_name/s .* repo_name:\ \"$REPO_NAME\" " \
|
||||||
config.yml
|
config.yml
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ services:
|
|||||||
- db:/var/lib/postgresql/data/
|
- db:/var/lib/postgresql/data/
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
image: docker.io/gitea/gitea:1.21-rootless
|
image: docker.io/gitea/gitea:latest-rootless
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "$SSH_PORT:2222"
|
- "$SSH_PORT:2222"
|
||||||
|
@ -12,7 +12,7 @@ docker-compose up -d --build
|
|||||||
read -r
|
read -r
|
||||||
)
|
)
|
||||||
|
|
||||||
sed -i -e "s/^SSH_PORT.*/SSH_PORT = $SSH_PORT/" \
|
sed -i -e "s/^SSH_PORT.*/SSH_PORT = $SSH_PORT/" \
|
||||||
-e 's/^SSH_LISTEN_PORT.*/SSH_LISTEN_PORT = 2222/' \
|
-e 's/^SSH_LISTEN_PORT.*/SSH_LISTEN_PORT = 2222/' \
|
||||||
/var/lib/docker/volumes/gitea_config/_data/app.ini
|
/var/lib/docker/volumes/gitea_config/_data/app.ini
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM debian:12-slim
|
FROM docker.io/debian:12-slim
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
ldap-utils \
|
ldap-utils \
|
||||||
slapd \
|
slapd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
EXPOSE 389 636
|
EXPOSE 389 636
|
||||||
|
@ -3,22 +3,22 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG LIDARR="http://lidarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64"
|
ARG LIDARR="http://lidarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
RUN curl -L "$LIDARR" | tar xz --strip-components=1
|
RUN curl -L "$LIDARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libchromaprint-tools \
|
libchromaprint-tools \
|
||||||
mediainfo \
|
mediainfo \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM docker.io/debian:12-slim
|
FROM docker.io/debian:12-slim
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
dovecot-imapd \
|
dovecot-imapd \
|
||||||
dovecot-lmtpd \
|
dovecot-lmtpd \
|
||||||
dovecot-managesieved \
|
dovecot-managesieved \
|
||||||
dovecot-sieve \
|
dovecot-sieve \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY dovecot/ /etc/dovecot/
|
COPY dovecot/ /etc/dovecot/
|
||||||
EXPOSE 110 995 \
|
EXPOSE 110 995 \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM docker.io/debian:12-slim
|
FROM docker.io/debian:12-slim
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
postfix \
|
postfix \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY main.cf /etc/postfix/
|
COPY main.cf /etc/postfix/
|
||||||
EXPOSE 25 587
|
EXPOSE 25 587
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
FROM docker.io/coturn/coturn:4.6
|
FROM docker.io/coturn/coturn:4.6
|
||||||
USER root
|
USER root
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
gettext-base \
|
gettext-base \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
COPY turnserver.conf /etc/coturn/
|
COPY turnserver.conf /etc/coturn/
|
||||||
|
@ -3,13 +3,13 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG MONERO='https://downloads.getmonero.org/cli/linux64'
|
ARG MONERO="https://downloads.getmonero.org/cli/linux64"
|
||||||
RUN curl -L "$MONERO" | tar xj --strip-components=1
|
RUN curl -L "$MONERO" | tar xj --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
@ -19,7 +19,7 @@ RUN mkdir -p /home/app/.bitmonero/ && chown -R app:app /home/app/
|
|||||||
VOLUME /home/app/.bitmonero/ /wallet/
|
VOLUME /home/app/.bitmonero/ /wallet/
|
||||||
EXPOSE 18080 18081
|
EXPOSE 18080 18081
|
||||||
USER app
|
USER app
|
||||||
CMD ["./monerod", "--non-interactive", "--confirm-external-bind", \
|
CMD ["./monerod", "--non-interactive", "--confirm-external-bind", \
|
||||||
"--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", \
|
"--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", \
|
||||||
"--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--restricted-rpc" \
|
"--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--restricted-rpc" \
|
||||||
]
|
]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM docker.io/debian:12-slim
|
FROM docker.io/debian:12-slim
|
||||||
WORKDIR /etc/openvpn/
|
WORKDIR /etc/openvpn/
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
openvpn \
|
openvpn \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh/ /usr/local/bin/
|
COPY entrypoint.sh/ /usr/local/bin/
|
||||||
COPY openvpn/ /etc/openvpn/
|
COPY openvpn/ /etc/openvpn/
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM docker.io/debian:12-slim as base
|
FROM docker.io/debian:12-slim as base
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
openresolv \
|
openresolv \
|
||||||
wireguard \
|
wireguard \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY entrypoint.sh/ /usr/local/bin/
|
COPY entrypoint.sh/ /usr/local/bin/
|
||||||
COPY wireguard/ /etc/wireguard/
|
COPY wireguard/ /etc/wireguard/
|
||||||
|
@ -3,21 +3,21 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG PROWLARR="http://prowlarr.servarr.com/v1/update/develop/updatefile?os=linux&runtime=netcore&arch=x64"
|
ARG PROWLARR="http://prowlarr.servarr.com/v1/update/develop/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
RUN curl -L "$PROWLARR" | tar xz --strip-components=1
|
RUN curl -L "$PROWLARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libicu72 \
|
libicu72 \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
VOLUME /config/
|
VOLUME /config/
|
||||||
|
@ -3,21 +3,21 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG RADARR="http://radarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64"
|
ARG RADARR="http://radarr.servarr.com/v1/update/master/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
RUN curl -L "$RADARR" | tar xz --strip-components=1
|
RUN curl -L "$RADARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libicu72 \
|
libicu72 \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
@ -3,21 +3,21 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG READARR="https://readarr.servarr.com/v1/update/develop/updatefile?os=linux&runtime=netcore&arch=x64"
|
ARG READARR="https://readarr.servarr.com/v1/update/develop/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
RUN curl -L "$READARR" | tar xz --strip-components=1
|
RUN curl -L "$READARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libicu72 \
|
libicu72 \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
@ -25,8 +25,8 @@ services:
|
|||||||
- SEARXNG_SECRET
|
- SEARXNG_SECRET
|
||||||
- SEARXNG_REDIS_URL=redis://redis
|
- SEARXNG_REDIS_URL=redis://redis
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/limiter.toml:/etc/searxng/limiter.toml:ro
|
- ./limiter.toml:/etc/searxng/limiter.toml:ro
|
||||||
- ./config/settings.yml:/etc/searxng/settings.yml:ro
|
- ./settings.yml:/etc/searxng/settings.yml:ro
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- nginx
|
- nginx
|
||||||
|
4
searxng/config/.gitignore
vendored
4
searxng/config/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
*
|
|
||||||
!.gitignore
|
|
||||||
!limiter.toml
|
|
||||||
!settings.yml
|
|
@ -468,6 +468,12 @@ engines:
|
|||||||
# # get your API key from: https://core.ac.uk/api-keys/register/
|
# # get your API key from: https://core.ac.uk/api-keys/register/
|
||||||
# api_key: 'unset'
|
# api_key: 'unset'
|
||||||
|
|
||||||
|
- name: cppreference
|
||||||
|
engine: cppreference
|
||||||
|
shortcut: cpp
|
||||||
|
paging: false
|
||||||
|
disabled: true
|
||||||
|
|
||||||
- name: crossref
|
- name: crossref
|
||||||
engine: crossref
|
engine: crossref
|
||||||
shortcut: cr
|
shortcut: cr
|
||||||
@ -550,6 +556,16 @@ engines:
|
|||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: JSON
|
results: JSON
|
||||||
language: de
|
language: de
|
||||||
|
tests:
|
||||||
|
bahnhof:
|
||||||
|
matrix:
|
||||||
|
query: berlin
|
||||||
|
lang: en
|
||||||
|
result_container:
|
||||||
|
- not_empty
|
||||||
|
- ['one_title_contains', 'Berlin Hauptbahnhof']
|
||||||
|
test:
|
||||||
|
- unique_results
|
||||||
|
|
||||||
- name: deezer
|
- name: deezer
|
||||||
engine: deezer
|
engine: deezer
|
||||||
@ -1444,23 +1460,7 @@ engines:
|
|||||||
|
|
||||||
- name: pypi
|
- name: pypi
|
||||||
shortcut: pypi
|
shortcut: pypi
|
||||||
engine: xpath
|
engine: pypi
|
||||||
paging: true
|
|
||||||
search_url: https://pypi.org/search/?q={query}&page={pageno}
|
|
||||||
results_xpath: /html/body/main/div/div/div/form/div/ul/li/a[@class="package-snippet"]
|
|
||||||
url_xpath: ./@href
|
|
||||||
title_xpath: ./h3/span[@class="package-snippet__name"]
|
|
||||||
content_xpath: ./p
|
|
||||||
suggestion_xpath: /html/body/main/div/div/div/form/div/div[@class="callout-block"]/p/span/a[@class="link"]
|
|
||||||
first_page_num: 1
|
|
||||||
categories: [it, packages]
|
|
||||||
about:
|
|
||||||
website: https://pypi.org
|
|
||||||
wikidata_id: Q2984686
|
|
||||||
official_api_documentation: https://warehouse.readthedocs.io/api-reference/index.html
|
|
||||||
use_official_api: false
|
|
||||||
require_api_key: false
|
|
||||||
results: HTML
|
|
||||||
|
|
||||||
- name: qwant
|
- name: qwant
|
||||||
qwant_categ: web
|
qwant_categ: web
|
||||||
@ -1567,7 +1567,7 @@ engines:
|
|||||||
- name: internetarchivescholar
|
- name: internetarchivescholar
|
||||||
engine: internet_archive_scholar
|
engine: internet_archive_scholar
|
||||||
shortcut: ias
|
shortcut: ias
|
||||||
timeout: 5.0
|
timeout: 15.0
|
||||||
|
|
||||||
- name: superuser
|
- name: superuser
|
||||||
engine: stackexchange
|
engine: stackexchange
|
||||||
@ -1859,6 +1859,16 @@ engines:
|
|||||||
about:
|
about:
|
||||||
website: https://species.wikimedia.org/
|
website: https://species.wikimedia.org/
|
||||||
wikidata_id: Q13679
|
wikidata_id: Q13679
|
||||||
|
tests:
|
||||||
|
wikispecies:
|
||||||
|
matrix:
|
||||||
|
query: "Campbell, L.I. et al. 2011: MicroRNAs"
|
||||||
|
lang: en
|
||||||
|
result_container:
|
||||||
|
- not_empty
|
||||||
|
- ['one_title_contains', 'Tardigrada']
|
||||||
|
test:
|
||||||
|
- unique_results
|
||||||
|
|
||||||
- name: wiktionary
|
- name: wiktionary
|
||||||
engine: mediawiki
|
engine: mediawiki
|
||||||
@ -2152,6 +2162,11 @@ engines:
|
|||||||
engine: tootfinder
|
engine: tootfinder
|
||||||
shortcut: toot
|
shortcut: toot
|
||||||
|
|
||||||
|
- name: voidlinux
|
||||||
|
engine: voidlinux
|
||||||
|
shortcut: void
|
||||||
|
disabled: true
|
||||||
|
|
||||||
- name: wallhaven
|
- name: wallhaven
|
||||||
engine: wallhaven
|
engine: wallhaven
|
||||||
# api_key: abcdefghijklmnopqrstuvwxyz
|
# api_key: abcdefghijklmnopqrstuvwxyz
|
@ -3,21 +3,21 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
FROM base as build
|
FROM base as build
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
ARG SONARR="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64"
|
ARG SONARR="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64"
|
||||||
RUN curl -L "$SONARR" | tar xz --strip-components=1
|
RUN curl -L "$SONARR" | tar xz --strip-components=1
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
RUN useradd -m app
|
RUN useradd -m app
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libicu72 \
|
libicu72 \
|
||||||
libsqlite3-0 \
|
libsqlite3-0 \
|
||||||
libssl3 \
|
libssl3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=build /app/ .
|
COPY --from=build /app/ .
|
||||||
COPY entrypoint.sh /usr/local/bin/
|
COPY entrypoint.sh /usr/local/bin/
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
BASE_URL=cicd.
|
|
||||||
EMAIL=
|
|
||||||
|
|
||||||
WOODPECKER_AGENT_SECRET= #$(openssl rand -hex 32)
|
|
||||||
WOODPECKER_GITEA=true
|
|
||||||
WOODPECKER_GITEA_URL=
|
|
||||||
WOODPECKER_GITEA_CLIENT=
|
|
||||||
WOODPECKER_GITEA_SECRET=
|
|
@ -1,55 +0,0 @@
|
|||||||
---
|
|
||||||
services:
|
|
||||||
install_site:
|
|
||||||
build: install_site
|
|
||||||
environment:
|
|
||||||
- BASE_URL
|
|
||||||
- EMAIL
|
|
||||||
volumes:
|
|
||||||
- ./nginx.conf:/web/woodpecker.conf
|
|
||||||
- sites:/sites/
|
|
||||||
- certs:/etc/letsencrypt/
|
|
||||||
- certbotroot:/var/www/certbot/
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
woodpecker-server:
|
|
||||||
image: docker.io/woodpeckerci/woodpecker-server:v2.0.0
|
|
||||||
restart: unless-stopped
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
environment:
|
|
||||||
- WOODPECKER_OPEN=true
|
|
||||||
- WOODPECKER_HOST=https://$BASE_URL
|
|
||||||
volumes:
|
|
||||||
- server-data:/var/lib/woodpecker/
|
|
||||||
networks:
|
|
||||||
- nginx
|
|
||||||
- default
|
|
||||||
|
|
||||||
woodpecker-agent:
|
|
||||||
image: docker.io/woodpeckerci/woodpecker-agent:v2.0.0
|
|
||||||
restart: unless-stopped
|
|
||||||
command: agent
|
|
||||||
environment:
|
|
||||||
- WOODPECKER_SERVER=woodpecker-server:9000
|
|
||||||
- WOODPECKER_AGENT_SECRET
|
|
||||||
volumes:
|
|
||||||
- agent-config:/etc/woodpecker/
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
depends_on:
|
|
||||||
- woodpecker-server
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
server-data:
|
|
||||||
agent-config:
|
|
||||||
sites:
|
|
||||||
external: true
|
|
||||||
certs:
|
|
||||||
external: true
|
|
||||||
certbotroot:
|
|
||||||
external: true
|
|
||||||
|
|
||||||
networks:
|
|
||||||
nginx:
|
|
||||||
external: true
|
|
@ -1 +0,0 @@
|
|||||||
../_nginx/install_site
|
|
@ -1,30 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 80;
|
|
||||||
listen [::]:80;
|
|
||||||
server_name $BASE_URL;
|
|
||||||
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
listen [::]:443 ssl;
|
|
||||||
server_name $BASE_URL;
|
|
||||||
|
|
||||||
http2 on;
|
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/$BASE_URL/fullchain.pem;
|
|
||||||
ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem;
|
|
||||||
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://woodpecker-server:8000;
|
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
|
||||||
|
|
||||||
chunked_transfer_encoding off;
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_redirect off;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user