2020-12-12 05:38:40 +13:00
|
|
|
version: "3"
|
|
|
|
|
2021-01-29 06:46:09 +13:00
|
|
|
# optional ports are specified throughout for more advanced use cases.
|
|
|
|
|
2020-12-12 05:38:40 +13:00
|
|
|
services:
|
|
|
|
app-service:
|
2021-01-25 03:02:36 +13:00
|
|
|
restart: always
|
2021-08-07 01:59:39 +12:00
|
|
|
image: budibase.docker.scarf.sh/budibase/apps
|
2021-06-08 22:42:39 +12:00
|
|
|
container_name: bbapps
|
2020-12-12 05:38:40 +13:00
|
|
|
ports:
|
2021-01-06 05:04:12 +13:00
|
|
|
- "${APP_PORT}:4002"
|
2020-12-12 05:38:40 +13:00
|
|
|
environment:
|
2021-01-15 06:01:31 +13:00
|
|
|
SELF_HOSTED: 1
|
2020-12-12 05:38:40 +13:00
|
|
|
COUCH_DB_URL: http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:5984
|
2021-01-15 06:01:31 +13:00
|
|
|
WORKER_URL: http://worker-service:4003
|
2021-03-24 04:37:11 +13:00
|
|
|
MINIO_URL: http://minio-service:9000
|
2021-03-25 01:54:59 +13:00
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-05-12 02:23:03 +12:00
|
|
|
INTERNAL_API_KEY: ${INTERNAL_API_KEY}
|
2020-12-12 05:38:40 +13:00
|
|
|
BUDIBASE_ENVIRONMENT: ${BUDIBASE_ENVIRONMENT}
|
2021-01-06 05:04:12 +13:00
|
|
|
PORT: 4002
|
2020-12-19 01:54:20 +13:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2021-03-24 04:37:11 +13:00
|
|
|
LOG_LEVEL: info
|
|
|
|
SENTRY_DSN: https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
|
2021-04-07 20:04:17 +12:00
|
|
|
ENABLE_ANALYTICS: "true"
|
2021-04-28 04:29:05 +12:00
|
|
|
REDIS_URL: redis-service:6379
|
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
2021-05-28 21:09:32 +12:00
|
|
|
volumes:
|
|
|
|
- ./logs:/logs
|
2020-12-17 08:50:02 +13:00
|
|
|
depends_on:
|
2020-12-18 01:39:55 +13:00
|
|
|
- worker-service
|
2021-06-22 20:46:33 +12:00
|
|
|
- redis-service
|
2020-12-17 08:50:02 +13:00
|
|
|
|
2020-12-18 01:39:55 +13:00
|
|
|
worker-service:
|
2021-01-25 03:02:36 +13:00
|
|
|
restart: always
|
2021-08-07 01:59:39 +12:00
|
|
|
image: budibase.docker.scarf.sh/budibase/worker
|
2021-06-08 22:42:39 +12:00
|
|
|
container_name: bbworker
|
2020-12-17 08:50:02 +13:00
|
|
|
ports:
|
2021-01-06 05:04:12 +13:00
|
|
|
- "${WORKER_PORT}:4003"
|
2020-12-17 08:50:02 +13:00
|
|
|
environment:
|
2021-03-24 04:37:11 +13:00
|
|
|
SELF_HOSTED: 1
|
2021-01-06 05:04:12 +13:00
|
|
|
PORT: 4003
|
2021-05-22 01:38:46 +12:00
|
|
|
CLUSTER_PORT: ${MAIN_PORT}
|
2021-04-09 04:39:46 +12:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2020-12-17 08:50:02 +13:00
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-03-30 03:00:40 +13:00
|
|
|
MINIO_URL: http://minio-service:9000
|
2020-12-17 08:50:02 +13:00
|
|
|
COUCH_DB_USERNAME: ${COUCH_DB_USER}
|
|
|
|
COUCH_DB_PASSWORD: ${COUCH_DB_PASSWORD}
|
2021-01-15 06:01:31 +13:00
|
|
|
COUCH_DB_URL: http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:5984
|
2021-05-12 02:23:03 +12:00
|
|
|
INTERNAL_API_KEY: ${INTERNAL_API_KEY}
|
2021-04-28 04:29:05 +12:00
|
|
|
REDIS_URL: redis-service:6379
|
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
2021-05-28 21:09:32 +12:00
|
|
|
volumes:
|
|
|
|
- ./logs:/logs
|
2020-12-12 05:38:40 +13:00
|
|
|
depends_on:
|
2021-05-20 23:21:58 +12:00
|
|
|
- redis-service
|
2020-12-12 05:38:40 +13:00
|
|
|
- minio-service
|
|
|
|
- couch-init
|
|
|
|
|
|
|
|
minio-service:
|
2021-01-25 03:02:36 +13:00
|
|
|
restart: always
|
2020-12-17 08:50:02 +13:00
|
|
|
image: minio/minio
|
2020-12-12 05:38:40 +13:00
|
|
|
volumes:
|
2021-01-07 05:58:29 +13:00
|
|
|
- minio_data:/data
|
2020-12-17 05:02:36 +13:00
|
|
|
ports:
|
2021-01-06 07:47:51 +13:00
|
|
|
- "${MINIO_PORT}:9000"
|
2020-12-12 05:38:40 +13:00
|
|
|
environment:
|
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-01-14 01:55:45 +13:00
|
|
|
MINIO_BROWSER: "off"
|
2020-12-12 05:38:40 +13:00
|
|
|
command: server /data
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
2021-01-06 05:04:12 +13:00
|
|
|
proxy-service:
|
2021-01-25 03:02:36 +13:00
|
|
|
restart: always
|
2021-01-06 05:04:12 +13:00
|
|
|
image: envoyproxy/envoy:v1.16-latest
|
2020-12-12 05:38:40 +13:00
|
|
|
volumes:
|
2021-01-06 05:04:12 +13:00
|
|
|
- ./envoy.yaml:/etc/envoy/envoy.yaml
|
2020-12-12 05:38:40 +13:00
|
|
|
ports:
|
2021-01-06 05:04:12 +13:00
|
|
|
- "${MAIN_PORT}:10000"
|
2020-12-12 05:38:40 +13:00
|
|
|
depends_on:
|
|
|
|
- minio-service
|
2021-01-06 05:04:12 +13:00
|
|
|
- worker-service
|
|
|
|
- app-service
|
|
|
|
- couchdb-service
|
2020-12-12 05:38:40 +13:00
|
|
|
|
|
|
|
couchdb-service:
|
2021-01-25 03:02:36 +13:00
|
|
|
restart: always
|
2021-03-27 03:26:07 +13:00
|
|
|
image: ibmcom/couchdb3
|
2020-12-12 05:38:40 +13:00
|
|
|
environment:
|
|
|
|
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
|
|
|
|
- COUCHDB_USER=${COUCH_DB_USER}
|
|
|
|
ports:
|
2020-12-17 05:02:36 +13:00
|
|
|
- "${COUCH_DB_PORT}:5984"
|
2020-12-12 05:38:40 +13:00
|
|
|
volumes:
|
2021-03-27 03:26:07 +13:00
|
|
|
- couchdb3_data:/opt/couchdb/data
|
2020-12-12 05:38:40 +13:00
|
|
|
|
|
|
|
couch-init:
|
|
|
|
image: curlimages/curl
|
2020-12-17 05:02:36 +13:00
|
|
|
environment:
|
|
|
|
PUT_CALL: "curl -u ${COUCH_DB_USER}:${COUCH_DB_PASSWORD} -X PUT couchdb-service:5984"
|
2020-12-12 05:38:40 +13:00
|
|
|
depends_on:
|
|
|
|
- couchdb-service
|
2020-12-17 05:02:36 +13:00
|
|
|
command: ["sh","-c","sleep 10 && $${PUT_CALL}/_users && $${PUT_CALL}/_replicator; fg;"]
|
2021-09-17 08:15:09 +12:00
|
|
|
|
2021-03-24 00:05:02 +13:00
|
|
|
redis-service:
|
|
|
|
restart: always
|
|
|
|
image: redis
|
2021-04-28 04:29:05 +12:00
|
|
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
2021-05-25 01:54:47 +12:00
|
|
|
ports:
|
|
|
|
- "${REDIS_PORT}:6379"
|
2021-03-24 00:05:02 +13:00
|
|
|
volumes:
|
|
|
|
- redis_data:/data
|
2021-09-17 08:15:09 +12:00
|
|
|
|
2021-05-28 21:09:32 +12:00
|
|
|
watchtower-service:
|
|
|
|
image: containrrr/watchtower
|
2021-09-17 08:15:09 +12:00
|
|
|
ports:
|
|
|
|
- "${WATCHTOWER_PORT}:8080"
|
2021-05-28 21:09:32 +12:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-06-08 22:42:39 +12:00
|
|
|
command: --debug --http-api-update bbapps bbworker
|
2021-05-28 21:09:32 +12:00
|
|
|
environment:
|
|
|
|
- WATCHTOWER_HTTP_API=true
|
|
|
|
- WATCHTOWER_HTTP_API_TOKEN=budibase
|
|
|
|
- WATCHTOWER_CLEANUP=true
|
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
|
|
|
2020-12-12 05:38:40 +13:00
|
|
|
|
|
|
|
volumes:
|
2021-03-27 03:26:07 +13:00
|
|
|
couchdb3_data:
|
2020-12-12 05:38:40 +13:00
|
|
|
driver: local
|
2021-01-07 05:58:29 +13:00
|
|
|
minio_data:
|
|
|
|
driver: local
|
2021-03-24 00:05:02 +13:00
|
|
|
redis_data:
|
|
|
|
driver: local
|