easier bootstrap script
This commit is contained in:
parent
b008b08e7c
commit
1239246d84
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
GITHUB_BASE_URL=https://raw.githubusercontent.com/Budibase/budibase/master/hosting
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v wget)" ]; then
|
||||||
|
echo 'Error: wget is not installed. Please install it for your operating system.' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
fetch_config_files() {
|
||||||
|
wget $GITHUB_BASE_URL/docker-compose.yaml
|
||||||
|
wget $GITHUB_BASE_URL/envoy.yaml
|
||||||
|
wget $GITHUB_BASE_URL/hosting.properties
|
||||||
|
wget $GITHUB_BASE_URL/start.sh
|
||||||
|
}
|
||||||
|
|
||||||
|
fetch_config_files
|
|
@ -2,6 +2,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app-service:
|
app-service:
|
||||||
|
restart: always
|
||||||
image: budibase/budibase-apps
|
image: budibase/budibase-apps
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT}:4002"
|
- "${APP_PORT}:4002"
|
||||||
|
@ -18,6 +19,7 @@ services:
|
||||||
- worker-service
|
- worker-service
|
||||||
|
|
||||||
worker-service:
|
worker-service:
|
||||||
|
restart: always
|
||||||
image: budibase/budibase-worker
|
image: budibase/budibase-worker
|
||||||
ports:
|
ports:
|
||||||
- "${WORKER_PORT}:4003"
|
- "${WORKER_PORT}:4003"
|
||||||
|
@ -36,6 +38,7 @@ services:
|
||||||
- couch-init
|
- couch-init
|
||||||
|
|
||||||
minio-service:
|
minio-service:
|
||||||
|
restart: always
|
||||||
image: minio/minio
|
image: minio/minio
|
||||||
volumes:
|
volumes:
|
||||||
- minio_data:/data
|
- minio_data:/data
|
||||||
|
@ -53,6 +56,7 @@ services:
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
proxy-service:
|
proxy-service:
|
||||||
|
restart: always
|
||||||
image: envoyproxy/envoy:v1.16-latest
|
image: envoyproxy/envoy:v1.16-latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./envoy.yaml:/etc/envoy/envoy.yaml
|
- ./envoy.yaml:/etc/envoy/envoy.yaml
|
||||||
|
@ -66,6 +70,7 @@ services:
|
||||||
- couchdb-service
|
- couchdb-service
|
||||||
|
|
||||||
couchdb-service:
|
couchdb-service:
|
||||||
|
restart: always
|
||||||
image: apache/couchdb:3.0
|
image: apache/couchdb:3.0
|
||||||
environment:
|
environment:
|
||||||
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
|
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
|
||||||
|
|
Loading…
Reference in New Issue