-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (45 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
version: '3.8'
services:
backend:
container_name: backend
depends_on:
- db
build:
context: ./backend
dockerfile: Dockerfile
ports:
- '3210:3030'
restart: always
volumes:
- ./backend:/backend
- '/backend/node_modules'
command: pnpm dev
environment:
DB_URL: mongodb://db/database
networks:
- app-network
db:
image: mongo:4.0-xenial
ports:
- 27017:27017
volumes:
- database:/data/db
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "4321:4040"
restart: always
volumes:
- ./frontend:/frontend
- '/frontend/node_modules'
command: pnpm run dev
networks:
- app-network
volumes:
database:
networks:
app-network:
driver: bridge