2020-12-11 17:38:40 +01:00
|
|
|
version: "3"
|
|
|
|
|
2021-01-28 18:46:09 +01:00
|
|
|
# optional ports are specified throughout for more advanced use cases.
|
|
|
|
|
2020-12-11 17:38:40 +01:00
|
|
|
services:
|
|
|
|
app-service:
|
2021-01-24 15:02:36 +01:00
|
|
|
restart: always
|
2021-01-28 19:30:59 +01:00
|
|
|
#build: ./build/server
|
2021-01-07 12:38:37 +01:00
|
|
|
image: budibase/budibase-apps
|
2020-12-11 17:38:40 +01:00
|
|
|
ports:
|
2021-01-05 17:04:12 +01:00
|
|
|
- "${APP_PORT}:4002"
|
2020-12-11 17:38:40 +01:00
|
|
|
environment:
|
2021-01-14 18:01:31 +01:00
|
|
|
SELF_HOSTED: 1
|
2020-12-11 17:38:40 +01:00
|
|
|
COUCH_DB_URL: http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:5984
|
2021-01-14 18:01:31 +01:00
|
|
|
WORKER_URL: http://worker-service:4003
|
2021-03-23 16:37:11 +01:00
|
|
|
MINIO_URL: http://minio-service:9000
|
2021-03-24 13:54:59 +01:00
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-01-14 18:01:31 +01:00
|
|
|
HOSTING_KEY: ${HOSTING_KEY}
|
2020-12-11 17:38:40 +01:00
|
|
|
BUDIBASE_ENVIRONMENT: ${BUDIBASE_ENVIRONMENT}
|
2021-01-05 17:04:12 +01:00
|
|
|
PORT: 4002
|
2020-12-18 13:54:20 +01:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2021-03-23 16:37:11 +01:00
|
|
|
LOG_LEVEL: info
|
|
|
|
SENTRY_DSN: https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
|
|
|
|
ENABLE_ANALYTICS: true
|
2020-12-16 20:50:02 +01:00
|
|
|
depends_on:
|
2020-12-17 13:39:55 +01:00
|
|
|
- worker-service
|
2020-12-16 20:50:02 +01:00
|
|
|
|
2020-12-17 13:39:55 +01:00
|
|
|
worker-service:
|
2021-01-24 15:02:36 +01:00
|
|
|
restart: always
|
2021-01-28 19:30:59 +01:00
|
|
|
#build: ./build/worker
|
2021-01-07 12:38:37 +01:00
|
|
|
image: budibase/budibase-worker
|
2020-12-16 20:50:02 +01:00
|
|
|
ports:
|
2021-01-05 17:04:12 +01:00
|
|
|
- "${WORKER_PORT}:4003"
|
2020-12-16 20:50:02 +01:00
|
|
|
environment:
|
2021-03-23 16:37:11 +01:00
|
|
|
SELF_HOSTED: 1
|
2021-01-05 17:04:12 +01:00
|
|
|
PORT: 4003
|
2020-12-16 20:50:02 +01:00
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-01-05 17:04:12 +01:00
|
|
|
RAW_MINIO_URL: http://minio-service:9000
|
2020-12-16 20:50:02 +01:00
|
|
|
COUCH_DB_USERNAME: ${COUCH_DB_USER}
|
|
|
|
COUCH_DB_PASSWORD: ${COUCH_DB_PASSWORD}
|
2021-01-14 18:01:31 +01:00
|
|
|
COUCH_DB_URL: http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:5984
|
2021-01-06 17:58:29 +01:00
|
|
|
SELF_HOST_KEY: ${HOSTING_KEY}
|
2020-12-11 17:38:40 +01:00
|
|
|
depends_on:
|
|
|
|
- minio-service
|
|
|
|
- couch-init
|
|
|
|
|
|
|
|
minio-service:
|
2021-01-24 15:02:36 +01:00
|
|
|
restart: always
|
2020-12-16 20:50:02 +01:00
|
|
|
image: minio/minio
|
2020-12-11 17:38:40 +01:00
|
|
|
volumes:
|
2021-01-06 17:58:29 +01:00
|
|
|
- minio_data:/data
|
2020-12-16 17:02:36 +01:00
|
|
|
ports:
|
2021-01-05 19:47:51 +01:00
|
|
|
- "${MINIO_PORT}:9000"
|
2020-12-11 17:38:40 +01:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-01-13 13:55:45 +01:00
|
|
|
MINIO_BROWSER: "off"
|
2020-12-11 17:38:40 +01:00
|
|
|
command: server /data
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
2021-01-05 17:04:12 +01:00
|
|
|
proxy-service:
|
2021-01-24 15:02:36 +01:00
|
|
|
restart: always
|
2021-01-05 17:04:12 +01:00
|
|
|
image: envoyproxy/envoy:v1.16-latest
|
2020-12-11 17:38:40 +01:00
|
|
|
volumes:
|
2021-01-05 17:04:12 +01:00
|
|
|
- ./envoy.yaml:/etc/envoy/envoy.yaml
|
2020-12-11 17:38:40 +01:00
|
|
|
ports:
|
2021-01-05 17:04:12 +01:00
|
|
|
- "${MAIN_PORT}:10000"
|
2021-01-28 18:46:09 +01:00
|
|
|
#- "9901:9901"
|
2020-12-11 17:38:40 +01:00
|
|
|
depends_on:
|
|
|
|
- minio-service
|
2021-01-05 17:04:12 +01:00
|
|
|
- worker-service
|
|
|
|
- app-service
|
|
|
|
- couchdb-service
|
2020-12-11 17:38:40 +01:00
|
|
|
|
|
|
|
couchdb-service:
|
2021-01-24 15:02:36 +01:00
|
|
|
restart: always
|
2020-12-11 17:38:40 +01:00
|
|
|
image: apache/couchdb:3.0
|
|
|
|
environment:
|
|
|
|
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
|
|
|
|
- COUCHDB_USER=${COUCH_DB_USER}
|
|
|
|
ports:
|
2020-12-16 17:02:36 +01:00
|
|
|
- "${COUCH_DB_PORT}:5984"
|
2021-01-28 18:46:09 +01:00
|
|
|
#- "4369:4369"
|
|
|
|
#- "9100:9100"
|
2020-12-11 17:38:40 +01:00
|
|
|
volumes:
|
2021-02-09 10:28:37 +01:00
|
|
|
- couchdb_data:/opt/couchdb/data
|
2020-12-11 17:38:40 +01:00
|
|
|
|
|
|
|
couch-init:
|
|
|
|
image: curlimages/curl
|
2020-12-16 17:02:36 +01:00
|
|
|
environment:
|
|
|
|
PUT_CALL: "curl -u ${COUCH_DB_USER}:${COUCH_DB_PASSWORD} -X PUT couchdb-service:5984"
|
2020-12-11 17:38:40 +01:00
|
|
|
depends_on:
|
|
|
|
- couchdb-service
|
2020-12-16 17:02:36 +01:00
|
|
|
command: ["sh","-c","sleep 10 && $${PUT_CALL}/_users && $${PUT_CALL}/_replicator; fg;"]
|
2020-12-11 17:38:40 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
couchdb_data:
|
|
|
|
driver: local
|
2021-01-06 17:58:29 +01:00
|
|
|
minio_data:
|
|
|
|
driver: local
|