forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (45 loc) · 966 Bytes
/
docker-compose.yaml
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
49
version: '3'
services:
client:
build:
context: ./frontend
dockerfile: ../docker/client.Dockerfile.dev
image: tooljet-client:development
volumes:
- ./frontend:/app:delegated
- /app/node_modules/
ports:
- 8082:8082
environment:
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
- NODE_ENV=development
command: ['npm', 'start']
server:
build:
context: .
dockerfile: ./docker/server.Dockerfile.dev
image: tooljet-server:development
depends_on:
- postgres
volumes:
- ./server:/app:delegated
- /app/node_modules/
ports:
- 3000:3000
environment:
- SERVE_CLIENT=false
- FORCE_COLOR=1
command: npm run start:dev
postgres:
image: postgres:13
restart: always
ports:
- 5432:5432
volumes:
- postgres:/data/postgres
environment:
- POSTGRES_PASSWORD=postgres
volumes:
postgres:
node_modules:
cache: