Skip to content

Commit beffbaf

Browse files
authored
[infra] main.tf 수정 (#197)
* work * Work * work
1 parent 2456981 commit beffbaf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

infra/terraform/main.tf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ yum install docker -y
234234
systemctl enable docker
235235
systemctl start docker
236236
237-
# Docker Compose 설치 (Amazon Linux 2023)
238-
dnf install docker-compose-plugin -y
237+
# Docker Compose 설치 (Binary 방식)
238+
curl -SL https://github.com/docker/compose/releases/download/v2.39.4/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
239+
chmod +x /usr/local/bin/docker-compose
240+
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
239241
240242
# Compose 파일을 프로젝트 루트에 복사하기 위해 git 설치 및 클론
241243
yum install git -y
@@ -249,12 +251,12 @@ NPM_ADMIN_PASSWORD=${var.password}
249251
REDIS_PASSWORD=${var.password}
250252
EOF
251253
252-
# Docker Compose 실행
253-
docker compose up -d
254-
255254
# GHCR 로그인
256255
echo "${var.github_access_token}" | docker login ghcr.io -u ${var.github_access_token_owner} --password-stdin
257256
257+
# Docker Compose 실행
258+
docker-compose up -d
259+
258260
END_OF_FILE
259261
}
260262

0 commit comments

Comments
 (0)