Skip to content

Commit 7088ffe

Browse files
committed
Add Docker-compose-file
1 parent 1736b58 commit 7088ffe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker-compose.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: "3.8"
2+
3+
services:
4+
app:
5+
build: .
6+
container_name: express-library-app
7+
ports:
8+
- "3000:3000"
9+
environment:
10+
- MONGODB_URI=mongodb://mongo:27017/local_library
11+
- PORT=3000
12+
depends_on:
13+
- mongo
14+
15+
mongo:
16+
image: mongo:6.0
17+
container_name: express-library-db
18+
ports:
19+
- "27017:27017"
20+
volumes:
21+
- mongo_data:/data/db
22+
23+
volumes:
24+
mongo_data:

0 commit comments

Comments
 (0)