2020-12-11 17:38:40 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app-service:
|
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:
|
2020-12-14 16:56:33 +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
|
|
|
|
BUDIBASE_ENVIRONMENT: ${BUDIBASE_ENVIRONMENT}
|
2020-12-14 16:56:33 +01:00
|
|
|
LOGO_URL: ${LOGO_URL}
|
2021-01-05 17:04:12 +01:00
|
|
|
PORT: 4002
|
2020-12-18 13:54:20 +01:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
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-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:
|
|
|
|
SELF_HOSTED: 1,
|
2020-12-17 13:39:55 +01:00
|
|
|
DEPLOYMENT_API_KEY: ${WORKER_API_KEY}
|
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}
|
|
|
|
RAW_COUCH_DB_URL: http://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:
|
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}
|
|
|
|
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:
|
|
|
|
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"
|
|
|
|
- "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:
|
|
|
|
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"
|
2020-12-11 17:38:40 +01:00
|
|
|
- "4369:4369"
|
|
|
|
- "9100:9100"
|
|
|
|
volumes:
|
|
|
|
- couchdb_data:/couchdb
|
|
|
|
|
|
|
|
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
|