Skip to content

Commit 74bf691

Browse files
chore(infra): add docker buildx installation to setup script
The Docker Compose V2 installation requires Docker Buildx to be available. Add the Buildx installation step to ensure compatibility with Compose V2.
1 parent 3f24d23 commit 74bf691

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/infra/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@ sudo systemctl enable docker
8383
sudo systemctl start docker
8484
sudo usermod -aG docker ec2-user
8585
86-
# Instala Docker Compose V2
86+
# Instala Docker Compose V2 e Docker Buildx (necessário para o Compose V2)
8787
mkdir -p /usr/local/lib/docker/cli-plugins
8888
curl -SL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-aarch64 -o /usr/local/lib/docker/cli-plugins/docker-compose
8989
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
9090
91+
curl -SL https://github.com/docker/buildx/releases/latest/download/buildx-v0.17.1.linux-arm64 -o /usr/local/lib/docker/cli-plugins/docker-buildx
92+
chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
93+
9194
# Cria pasta do projeto
9295
mkdir -p /home/ec2-user/app
9396
cd /home/ec2-user/app

docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
redis:
53
image: redis:7-alpine

0 commit comments

Comments
 (0)