-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
42 lines (39 loc) · 914 Bytes
/
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
services:
# run frontend-prod build
client:
image: nish1896/ecom-mern-client
build:
context: .
dockerfile: ./apps/client/Dockerfile
ports:
- '3000:80'
# run client in dev mode with hot reloading
client-dev:
image: nish1896/ecom-mern-client-dev
build:
context: .
dockerfile: ./apps/client/Dockerfile.dev
ports:
- '3001:3000'
volumes:
- '/app/node_modules'
- './apps/client:/app/apps/client'
# runs server build
server:
image: nish1896/ecom-mern-server
build:
context: .
dockerfile: ./apps/server/Dockerfile
ports:
- '8000:8000'
# server in dev-mode
server-dev:
image: nish1896/ecom-mern-server-dev
build:
context: .
dockerfile: ./apps/server/Dockerfile.dev
ports:
- '8080:8000'
volumes:
- '/app/node_modules'
- './apps/server:/app/apps/server'