Skip to content

Commit

Permalink
changes in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqpk committed Sep 17, 2024
1 parent 8e08c93 commit 71d1587
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,32 @@ jobs:
- name: Checkout backend repo
uses: actions/checkout@v2

# # Set up Docker
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# Set up Docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

# # Log in to Docker Hub
# - name: Log in to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

# # Build the Docker image
# - name: Build Docker Image
# run: |
# echo "Building Docker image..."
# docker build -t ${{ secrets.DOCKER_USERNAME }}/talker:latest .
# echo "Docker image built successfully."
# Build the Docker image
- name: Build Docker Image
run: |
echo "Building Docker image..."
docker build -t ${{ secrets.DOCKER_USERNAME }}/talker:latest .
echo "Docker image built successfully."
# # Push the Docker image to Docker Hub
# - name: Push Docker Image
# run: |
# echo "Pushing Docker image to Docker Hub..."
# docker push ${{ secrets.DOCKER_USERNAME }}/talker:latest
# echo "Docker image pushed successfully."
# Push the Docker image to Docker Hub
- name: Push Docker Image
run: |
echo "Pushing Docker image to Docker Hub..."
docker push ${{ secrets.DOCKER_USERNAME }}/talker:latest
echo "Docker image pushed successfully."
# Copy files to VPS
- name: Copy files to VPS
uses: appleboy/scp-action@master
with:
Expand All @@ -46,6 +47,7 @@ jobs:
target: /home/${{ secrets.VPS_USERNAME }}/app
debug: true

# Deploy to VPS
- name: Deploy to VPS
uses: appleboy/ssh-action@master
with:
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ services:
env_file: .env
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s

nginx:
image: nginx:mainline-alpine
Expand Down

0 comments on commit 71d1587

Please sign in to comment.