forked from ToolJet/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (61 loc) · 1.39 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3'
services:
base: &base
build:
context: .
dockerfile: ./docker/server.Dockerfile.dev
args:
RAILS_ENV: 'development'
tty: true
stdin_open: true
image: tooljet:development
env_file: .env
client:
<<: *base
build:
context: ./frontend
dockerfile: ../docker/client.Dockerfile
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:
<<: *base
build:
context: .
dockerfile: ./docker/server.Dockerfile.dev
image: tooljet-server:development
volumes:
- ./:/app:delegated
# - bundle:/usr/local/bundle
depends_on:
- postgres
ports:
- 3000:3000
env_file: .env
environment:
- RAILS_ENV=development
- DB_PASSWORD=postgres
- DB_HOST=postgres
entrypoint: ["bash", "/app/docker/entrypoints/server.sh"]
command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
postgres:
image: postgres:12
restart: always
volumes:
- postgres:/data/postgres
environment:
- POSTGRES_DB=tooljet_development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
postgres:
node_modules:
cache:
bundle: