|
|
|
@ -34,27 +34,32 @@ ENV \ |
|
|
|
ARCHITECTURE=amd \ |
|
|
|
BUDIBASE_ENVIRONMENT=PRODUCTION \ |
|
|
|
CLUSTER_PORT=80 \ |
|
|
|
COUCHDB_PASSWORD=budibase \ |
|
|
|
COUCHDB_USER=budibase \ |
|
|
|
COUCH_DB_URL=http://budibase:budibase@localhost:5984 \ |
|
|
|
# CUSTOM_DOMAIN=budi001.custom.com \ |
|
|
|
DEPLOYMENT_ENVIRONMENT=docker \ |
|
|
|
INTERNAL_API_KEY=budibase \ |
|
|
|
JWT_SECRET=testsecret \ |
|
|
|
MINIO_ACCESS_KEY=budibase \ |
|
|
|
MINIO_SECRET_KEY=budibase \ |
|
|
|
MINIO_URL=http://localhost:9000 \ |
|
|
|
POSTHOG_TOKEN=phc_fg5I3nDOf6oJVMHSaycEhpPdlgS8rzXG2r6F2IpxCHS \ |
|
|
|
REDIS_PASSWORD=budibase \ |
|
|
|
REDIS_URL=localhost:6379 \ |
|
|
|
SELF_HOSTED=1 \ |
|
|
|
TARGETBUILD=$TARGETBUILD \ |
|
|
|
WORKER_PORT=4002 \ |
|
|
|
WORKER_URL=http://localhost:4002 |
|
|
|
WORKER_URL=http://localhost:4002 \ |
|
|
|
APPS_URL=http://localhost:4001 |
|
|
|
|
|
|
|
# These secret env variables are generated by the runner at startup |
|
|
|
# their values can be overriden by the user, they will be written |
|
|
|
# to the .env file in the /data directory for use later on |
|
|
|
# REDIS_PASSWORD=budibase \ |
|
|
|
# COUCHDB_PASSWORD=budibase \ |
|
|
|
# COUCHDB_USER=budibase \ |
|
|
|
# COUCH_DB_URL=http://budibase:budibase@localhost:5984 \ |
|
|
|
# INTERNAL_API_KEY=budibase \ |
|
|
|
# JWT_SECRET=testsecret \ |
|
|
|
# MINIO_ACCESS_KEY=budibase \ |
|
|
|
# MINIO_SECRET_KEY=budibase \ |
|
|
|
|
|
|
|
# install base dependencies |
|
|
|
RUN apt-get update && \ |
|
|
|
apt-get install -y software-properties-common wget nginx && \ |
|
|
|
apt-get install -y software-properties-common wget nginx uuid-runtime && \ |
|
|
|
apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main' && \ |
|
|
|
apt-get update |
|
|
|
|
|
|
|
@ -66,8 +71,8 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh & |
|
|
|
npm install --global yarn pm2 |
|
|
|
|
|
|
|
# setup nginx |
|
|
|
ADD hosting/single/nginx.conf /etc/nginx |
|
|
|
ADD hosting/single/nginx-default-site.conf /etc/nginx/sites-enabled/default |
|
|
|
ADD hosting/single/nginx/nginx.conf /etc/nginx |
|
|
|
ADD hosting/single/nginx/nginx-default-site.conf /etc/nginx/sites-enabled/default |
|
|
|
RUN mkdir -p /var/log/nginx && \ |
|
|
|
touch /var/log/nginx/error.log && \ |
|
|
|
touch /var/run/nginx.pid |
|
|
|
@ -86,13 +91,13 @@ RUN wget https://github.com/cloudant-labs/clouseau/releases/download/2.21.0/clou |
|
|
|
|
|
|
|
WORKDIR /opt/clouseau |
|
|
|
RUN mkdir ./bin |
|
|
|
ADD hosting/single/clouseau ./bin/ |
|
|
|
ADD hosting/single/log4j.properties hosting/single/clouseau.ini ./ |
|
|
|
ADD hosting/single/clouseau/clouseau ./bin/ |
|
|
|
ADD hosting/single/clouseau/log4j.properties hosting/single/clouseau/clouseau.ini ./ |
|
|
|
RUN chmod +x ./bin/clouseau |
|
|
|
|
|
|
|
# setup CouchDB |
|
|
|
WORKDIR /opt/couchdb |
|
|
|
ADD hosting/single/vm.args ./etc/ |
|
|
|
ADD hosting/single/couch/vm.args hosting/single/couch/local.ini ./etc/ |
|
|
|
|
|
|
|
# setup minio |
|
|
|
WORKDIR /minio |
|
|
|
|