Update compose.yaml
This commit is contained in:
12
compose.yaml
12
compose.yaml
@@ -7,6 +7,8 @@ services:
|
|||||||
container_name: DwinzoApi_V0_end
|
container_name: DwinzoApi_V0_end
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
|
MONGO_URI: mongodb://mongo-Dwinzocontainer:27017/dwinzodb
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "4999:4999" # Host port 5000 mapped to container's port 5000
|
- "4999:4999" # Host port 5000 mapped to container's port 5000
|
||||||
expose:
|
expose:
|
||||||
@@ -32,16 +34,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- DwinzoMajor # Socket server on the same network as the API server
|
- DwinzoMajor # Socket server on the same network as the API server
|
||||||
|
|
||||||
mongo:
|
|
||||||
image: mongo:latest
|
|
||||||
container_name: mongo-Dwinzocontainer-demo
|
|
||||||
ports:
|
|
||||||
- "27021:27017"
|
|
||||||
volumes:
|
|
||||||
- mongo-data:/data/db
|
|
||||||
networks:
|
|
||||||
- DwinzoMajor # Mongo is now on the same network
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mongo-data: # Persistent volume for MongoDB data
|
mongo-data: # Persistent volume for MongoDB data
|
||||||
|
|||||||
Reference in New Issue
Block a user