Skip to content

Commit

Permalink
added a docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ikumar200 committed Jan 19, 2025
1 parent a2e6fda commit 5fd1eab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3.8'

services:
mongodb:
image: "mongo"
container_name: mongodb123123
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db

backend:
image: "backend22"
build:
context: .
dockerfile: Dockerfile
container_name: backend_application
ports:
- 3000:3000
environment:
MONGO_URL: "mongodb://mongodb123123:27017"

volumes:
mongodb_data:

0 comments on commit 5fd1eab

Please sign in to comment.