Skip to content

Commit

Permalink
created docker compose file for services
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiraj-ku committed Sep 9, 2024
1 parent dab63f6 commit c328595
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: "3.8"

services:
node:
build:
context: .
dockerfile: Dockerfile
ports:
- "4040:4040"

depends_on:
- mongo
- redis
environment:
- MONGO_URI=mongodb://mongo:27017/splitBhaiDB
- REDIS_URL=redis://redis:6379

mongo:
image: mongo:latest
name: mongo_db
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db

redis:
image: redis:lates
container_name: redis_db
ports:
- "6379:6379"

volumes: mongo-data
redis-data

0 comments on commit c328595

Please sign in to comment.