mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 13:37:28 +00:00
* add dockerfile for try tooljet setup * update npm scripts and logged messages * refactor npm scripts for dist folder scripts * update usages of db setup and seed * setup script to init db and boot app * fix dockerfile * update dockerfile * user production.Dockerfile as base image * fix script * fix script exit * fix lint
24 lines
No EOL
915 B
Docker
24 lines
No EOL
915 B
Docker
FROM tooljet/tooljet-ce:latest
|
|
|
|
# Install Postgres
|
|
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
|
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
|
RUN apt update && apt -y install postgresql-13 postgresql-client-13
|
|
USER postgres
|
|
RUN service postgresql start && \
|
|
psql -c "create role tooljet with login superuser password 'postgres';"
|
|
|
|
# ENV defaults
|
|
ENV TOOLJET_HOST=http://localhost:3000 \
|
|
LOCKBOX_MASTER_KEY=replace_with_lockbox_master_key \
|
|
SECRET_KEY_BASE=replace_with_secret_key_base \
|
|
PG_DB=tooljet_production \
|
|
PG_USER=tooljet \
|
|
PG_PASS=postgres \
|
|
PG_HOST=localhost \
|
|
ORM_LOGGING=true \
|
|
DEPLOYMENT_PLATFORM=docker:local \
|
|
TERM=xterm
|
|
|
|
# Prepare DB and start application
|
|
ENTRYPOINT service postgresql start 1> /dev/null && bash /app/server/scripts/init-db-boot.sh |