mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* add plugins to docker compose * build common * change cmd * build:pkgs * fix' * temp: add named vol * update docker-compose for plugins dev * update seed script to transpile only * fix ci * fix ci Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
plugins:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./docker/plugins.Dockerfile.dev
|
|
image: tooljet-plugins:development
|
|
platform: linux/x86_64
|
|
volumes:
|
|
- plugins_vol:/app/plugins
|
|
command: npm run --prefix plugins start
|
|
|
|
client:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./docker/client.Dockerfile.dev
|
|
image: tooljet-client:development
|
|
platform: linux/x86_64
|
|
volumes:
|
|
- ./frontend:/app/frontend:delegated
|
|
- plugins_vol:/app/plugins
|
|
- /app/frontend/node_modules/
|
|
ports:
|
|
- 8082:8082
|
|
environment:
|
|
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
|
|
- NODE_ENV=development
|
|
command: npm run --prefix frontend start
|
|
|
|
server:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./docker/server.Dockerfile.dev
|
|
image: tooljet-server:development
|
|
platform: linux/x86_64
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- ./server:/app/server:delegated
|
|
- plugins_vol:/app/plugins
|
|
- /app/server/node_modules/
|
|
- ./.env:/app/.env
|
|
- ./.env.test:/app/.env.test
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- SERVE_CLIENT=false
|
|
- FORCE_COLOR=1
|
|
command: npm run --prefix server start:dev
|
|
|
|
postgres:
|
|
image: postgres:13
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres:/data/postgres
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
volumes:
|
|
postgres:
|
|
plugins_vol:
|
|
driver_opts:
|
|
type: none
|
|
device: ${PWD}/plugins
|
|
o: bind
|