Remove docker-compose version checks.

This commit is contained in:
Kavin 2022-06-02 04:38:55 +01:00
parent 099a59cf8a
commit aa3f174f5e
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
3 changed files with 8 additions and 19 deletions

View File

@ -4,15 +4,6 @@ if [ -z "$(which docker-compose)" ]; then
exit 1 exit 1
fi fi
# Docker-Compose version check, to prevent "Unsupported configuration option"
COMPOSE_VERSION=$(docker-compose version --short 2>/dev/null || docker compose version --short 2>/dev/null)
REQUIRED_COMPOSE_VERSION="1.28.0"
if [[ $(printf '%s\n' "$REQUIRED_COMPOSE_VERSION" "$COMPOSE_VERSION" | sort -V | head -n1) != $REQUIRED_COMPOSE_VERSION ]]; then
echo "Your docker-compose version of $COMPOSE_VERSION is too old. Please upgrade to $REQUIRED_COMPOSE_VERSION or higher."
echo "See https://docs.docker.com/compose/install/#install-compose for installation instructions."
exit 1
fi
echo "Enter a hostname for the Frontend (eg: piped.kavin.rocks):" && read -r frontend echo "Enter a hostname for the Frontend (eg: piped.kavin.rocks):" && read -r frontend
echo "Enter a hostname for the Backend (eg: pipedapi.kavin.rocks):" && read -r backend echo "Enter a hostname for the Backend (eg: pipedapi.kavin.rocks):" && read -r backend
echo "Enter a hostname for the Proxy (eg: pipedproxy.kavin.rocks):" && read -r proxy echo "Enter a hostname for the Proxy (eg: pipedproxy.kavin.rocks):" && read -r proxy

View File

@ -1,3 +1,5 @@
version: "3"
services: services:
pipedfrontend: pipedfrontend:
image: 1337kavin/piped-frontend:latest image: 1337kavin/piped-frontend:latest
@ -5,9 +7,7 @@ services:
depends_on: depends_on:
- piped - piped
container_name: piped-frontend container_name: piped-frontend
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
/usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g
"daemon off;"'
ytproxy: ytproxy:
image: 1337kavin/ytproxy:latest image: 1337kavin/ytproxy:latest
restart: unless-stopped restart: unless-stopped
@ -31,8 +31,7 @@ services:
depends_on: depends_on:
- piped - piped
healthcheck: healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed || test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed || (varnishreload && exit 1)"
(varnishreload && exit 1)"
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 1 retries: 1

View File

@ -1,3 +1,5 @@
version: "3"
services: services:
pipedfrontend: pipedfrontend:
image: 1337kavin/piped-frontend:latest image: 1337kavin/piped-frontend:latest
@ -5,9 +7,7 @@ services:
depends_on: depends_on:
- piped - piped
container_name: piped-frontend container_name: piped-frontend
entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g entrypoint: ash -c 'sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;"'
/usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g
"daemon off;"'
ytproxy: ytproxy:
image: 1337kavin/ytproxy:latest image: 1337kavin/ytproxy:latest
restart: unless-stopped restart: unless-stopped
@ -31,8 +31,7 @@ services:
depends_on: depends_on:
- piped - piped
healthcheck: healthcheck:
test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed || test: ash -c "wget --no-verbose --tries=1 --spider 127.0.0.1:80/feed || (varnishreload && exit 1)"
(varnishreload && exit 1)"
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 1 retries: 1