forked from iemafzalhassan/full-stack_chatApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (44 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
58 lines (44 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8080:80"
depends_on:
- backend
networks:
- chat-network
environment:
- BACKEND_URL=http://backend:5001
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5001:5001"
depends_on:
- mongo
env_file:
- .env
networks:
- chat-network
restart: unless-stopped
mongo:
image: mongo:latest
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=admin
volumes:
- mongodb_data:/data/db
networks:
- chat-network
restart: unless-stopped
networks:
chat-network:
driver: bridge
volumes:
mongodb_data: