-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
48 lines (42 loc) · 970 Bytes
/
docker-compose.yml
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
version: '3.8' # Specify the version of Compose file format
services:
frontend:
build:
context: ./frontend # Path to your frontend Dockerfile
env_file:
- ./frontend/.env
ports:
- "80:5173" # Map container port to host port
networks:
- chat-network
depends_on:
- backend
backend:
build:
context: ./backend # Path to your backend Dockerfile
ports:
- "8000:8000" # Map container port to host port
env_file:
- ./backend/.env
environment:
- GOOGLE_APPLICATION_CREDENTIALS=dist/firebase-admin-cred.json
- MONGO_URL=mongodb://mongo:27017/baatchit
depends_on:
- mongo
networks:
- chat-network
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
networks:
- chat-network
networks:
chat-network:
driver: bridge
volumes:
mongo-data:
driver: local