-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 809 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 809 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
version: '3'
services:
frontend:
environment:
- RUN_MODE=dev
build:
context: ./frontend
dockerfile: Dockerfile.frontend
image: productbot/frontend:latest
ports:
- "3000:3000"
- "9229:9229"
volumes:
- ./frontend:/app
backend:
build:
context: ./backend
dockerfile: Dockerfile.backend
image: productbot/backend:latest
volumes:
- ./backend:/app # This line assumes that your application code in the container is in /app
ports:
- "5000:5000"
depends_on:
- mongo
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongodata:/data/db
- ./mongod.conf:/etc/mongod.conf
# command: ["mongod", "--config", "/etc/mongod.conf"]
volumes:
mongodata:
mongologs: