Skip to content

Commit

Permalink
Merge pull request #1 from SwarnenduG07/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
SwarnenduG07 authored Aug 17, 2024
2 parents 64bf219 + 8228bc9 commit a3b29c0
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy to Docker Hub

on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: check Out Repo
uses: actions/checkout@v2

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

- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.user
push: true
tags: swarnendug07/fluxcraft:v1

- name: Verify Pushed Image
run: docker pull swarnendug07/fluxcraft:v1
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-alpine

WORKDIR /app
COPY package.json package-lock.json

COPY . .

RUN npm install
RUN npm run build

EXPOSE 3000

CMD ["npm", "run" ,"start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME
CLOUDINARY_API_KEY
CLOUDINARY_API_SECRET
```
Then go to setting/upload and eneble unsignedurl then create app and then give a folder name. then go to ad ons and turn on google auto tagging.
Then go to setting/upload and enable unsigned URL then create app and then give a folder name. then go to adOns and turn on google auto tagging.

## Db_URL

Expand Down
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.8'
services:
mongodb:
image: mongo
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db

imagemagic-1:
image: swarnendug07/imagemagic
container_name: imagemagic_app
restart: always # Fixed typo: 'alwas' to 'always'
depends_on:
- mongodb
ports:
- "3000:3000"
environment:
MONGO_URL: "mongodb://mongodb:27017" # Added a space after the colon

volumes:
mongodb_data:

0 comments on commit a3b29c0

Please sign in to comment.