mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
This commit changes the command used to launch front-end server from: npm run --prefix server start:prod to: npm start
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
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:
|
|
# env_file: .env
|
|
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:
|
|
- NODE_ENV=development
|
|
- PG_DB=tooljet_development
|
|
- PG_USER=postgres
|
|
- PG_PASS=postgres
|
|
- PG_HOST=postgres
|
|
entrypoint: ./entrypoint.sh
|
|
command: npm run start:dev
|
|
|
|
postgres:
|
|
image: postgres:13
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres:/data/postgres
|
|
environment:
|
|
- POSTGRES_DB=tooljet_development
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
volumes:
|
|
postgres:
|
|
node_modules:
|
|
cache:
|