Skip to content

Commit

Permalink
chore: 배포 최적화
Browse files Browse the repository at this point in the history
  • Loading branch information
shdhkim committed Dec 21, 2024
1 parent 346d8ff commit 77f9ba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
cd ~/flask-milvus-app
sudo docker-compose down || true
sudo docker-compose pull
sudo docker-compose up -d --build --timeout 600
sudo docker-compose up -d --timeout 600
# 컨테이너 상태 확인
echo "컨테이너 상태를 확인합니다."
Expand Down
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@


services:
flask-app:
container_name: flask-app
build:
context: .
dockerfile: Dockerfile
image: your-dockerhub-username/flask-app:latest # Docker Hub에서 이미지를 가져옵니다.
ports:
- "5000:5000"
depends_on:
Expand All @@ -27,4 +23,5 @@ services:
restart: always

volumes:
milvus_data:
milvus_data:

0 comments on commit 77f9ba7

Please sign in to comment.