Skip to content

Commit

Permalink
support docker compose, fixes #127.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed May 31, 2024
1 parent 44fa2e0 commit 76c0d28
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions traefik/install
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if ! dockerd --help > /dev/null 2>&1; then
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get update
apt-get install -y containerd.io docker-ce docker-ce-cli
apt-get install -y containerd.io docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin
fi

echo "[Y] Docker is installed..."
Expand All @@ -123,7 +123,7 @@ echo "[Y] Docker is installed..."
#

apt-get update
apt-get install -y apache2-utils docker-compose sed
apt-get install -y apache2-utils sed

echo "[Y] Dependencies are installed..."

Expand Down Expand Up @@ -245,8 +245,13 @@ for NEKO_IMAGE in "${NEKO_IMAGES[@]}"; do
docker pull "${NEKO_IMAGE}"
done

# Start
docker-compose pull
docker-compose up -d
# docker-compose was renamed to docker compose, support both
if docker-compose --version > /dev/null 2>&1; then
docker-compose pull
docker-compose up -d
else
docker compose pull
docker compose up -d
fi

echo "[Y] Finished! You can now visit https://${NEKO_ROOMS_TRAEFIK_DOMAIN}/"

0 comments on commit 76c0d28

Please sign in to comment.