-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (41 loc) · 851 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (41 loc) · 851 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
version: "3.8"
services:
mongodb:
image: "mongo"
volumes:
- data:/data/db
env_file:
- ./mongo.env
ports:
- "27017:27017"
backend:
build: ./backend
ports:
- "8080:8080"
volumes:
- ./backend:/app
- /app/node_modules
env_file:
- ./backend/.env
depends_on:
- mongodb
container_name: backend
frontend:
build: ./frontend
ports:
- "8000:8000"
volumes:
- ./frontend/src:/app/src # bind mount
- ./frontend/index.html:/app/index.html # bind mount
- ./frontend/tailwind.config.js:/app/tailwind.config.js # bind mount
stdin_open: true # -it => input part
tty: true # -it => terminal part
env_file:
- ./frontend/dev.env
depends_on:
- backend
volumes:
data:
networks:
default:
name: test-network