Skip to content
Snippets Groups Projects
Commit 3408618a authored by jurgenhaas's avatar jurgenhaas
Browse files

#107 Use docker compose instead of docker-compose

parent 1ab800eb
No related branches found
Tags v2.2.0
No related merge requests found
...@@ -23,8 +23,6 @@ RUN apk add --no-cache bash curl jq && \ ...@@ -23,8 +23,6 @@ RUN apk add --no-cache bash curl jq && \
ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \ ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib && \
ln -s /usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1 && \ ln -s /usr/lib/libgcc_s.so.1 /lib/libgcc_s.so.1 && \
ln -s /lib/libgcc_s.so.1 /usr/glibc-compat/lib/ && \ ln -s /lib/libgcc_s.so.1 /usr/glibc-compat/lib/ && \
wget -q https://github.com/docker/compose/releases/download/${compose_version}/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose && \
mkdir -p /usr/local/lib/docker/cli-plugins && \ mkdir -p /usr/local/lib/docker/cli-plugins && \
curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose && \ curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose && \
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose && \ chmod +x /usr/local/lib/docker/cli-plugins/docker-compose && \
......
...@@ -32,7 +32,7 @@ function removenetwork() { ...@@ -32,7 +32,7 @@ function removenetwork() {
function rebuildtraefik() { function rebuildtraefik() {
cd ${HOME}/.traefik || return cd ${HOME}/.traefik || return
if [[ -f "docker-compose.yml" ]]; then if [[ -f "docker-compose.yml" ]]; then
docker-compose --project-name traefik up -d --remove-orphans docker compose --project-name traefik up -d --remove-orphans
fi fi
if [[ "$NETWORKS" == "" ]]; then if [[ "$NETWORKS" == "" ]]; then
return return
......
...@@ -94,8 +94,8 @@ function create { ...@@ -94,8 +94,8 @@ function create {
# Cleanup # Cleanup
if [[ $L3D_CLEANUP -eq 1 ]]; then if [[ $L3D_CLEANUP -eq 1 ]]; then
docker-compose stop docker compose stop
docker-compose rm --force -v docker compose rm --force -v
fi fi
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment