Skip to content

Commit c0ce50a

Browse files
committed
chore: add docker-compose for mongodb and elasticsearch
1 parent 916e8f9 commit c0ce50a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docker-compose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: '3.7'
2+
services:
3+
mongodb_container:
4+
image: mongo:latest
5+
environment:
6+
MONGO_INITDB_ROOT_USERNAME: root
7+
MONGO_INITDB_ROOT_PASSWORD: root
8+
ports:
9+
- 27017:27017
10+
networks:
11+
- etswana-network
12+
volumes:
13+
- mongodb_data_container:/data/db
14+
15+
elasticsearch:
16+
image: elasticsearch:1.7.5
17+
container_name: elasticsearch
18+
networks:
19+
- etswana-network
20+
21+
volumes:
22+
mongodb_data_container:
23+
networks:
24+
etswana-network:
25+
driver: bridge

0 commit comments

Comments
 (0)