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:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2021-08-06 15:59:39 +02:00
|
|
|
image: budibase.docker.scarf.sh/budibase/apps
|
2021-06-08 12:42:39 +02:00
|
|
|
container_name: bbapps
|
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-05-11 16:23:03 +02:00
|
|
|
INTERNAL_API_KEY: ${INTERNAL_API_KEY}
|
2020-12-11 17:38:40 +01:00
|
|
|
BUDIBASE_ENVIRONMENT: ${BUDIBASE_ENVIRONMENT}
|
2021-01-05 17:04:12 +01:00
|
|
|
PORT: 4002
|
2023-03-13 16:02:59 +01:00
|
|
|
API_ENCRYPTION_KEY: ${API_ENCRYPTION_KEY}
|
2020-12-18 13:54:20 +01:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2021-03-23 16:37:11 +01:00
|
|
|
LOG_LEVEL: info
|
2021-04-07 10:04:17 +02:00
|
|
|
ENABLE_ANALYTICS: "true"
|
2021-04-27 18:29:05 +02:00
|
|
|
REDIS_URL: redis-service:6379
|
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
2022-06-30 12:28:52 +02:00
|
|
|
BB_ADMIN_USER_EMAIL: ${BB_ADMIN_USER_EMAIL}
|
|
|
|
BB_ADMIN_USER_PASSWORD: ${BB_ADMIN_USER_PASSWORD}
|
2022-08-16 17:14:47 +02:00
|
|
|
PLUGINS_DIR: ${PLUGINS_DIR}
|
2024-01-05 13:24:56 +01:00
|
|
|
OFFLINE_MODE: ${OFFLINE_MODE:-}
|
2024-06-21 18:01:27 +02:00
|
|
|
SQS_SEARCH_ENABLE: "true"
|
|
|
|
COUCH_DB_SQL_URL: "http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:4984"
|
2020-12-16 20:50:02 +01:00
|
|
|
depends_on:
|
2020-12-17 13:39:55 +01:00
|
|
|
- worker-service
|
2021-06-22 10:46:33 +02:00
|
|
|
- redis-service
|
2023-10-17 11:10:51 +02:00
|
|
|
# volumes:
|
|
|
|
# - /some/path/to/plugins:/plugins
|
2020-12-16 20:50:02 +01:00
|
|
|
|
2020-12-17 13:39:55 +01:00
|
|
|
worker-service:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2021-08-06 15:59:39 +02:00
|
|
|
image: budibase.docker.scarf.sh/budibase/worker
|
2021-06-08 12:42:39 +02:00
|
|
|
container_name: bbworker
|
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
|
2021-05-21 15:38:46 +02:00
|
|
|
CLUSTER_PORT: ${MAIN_PORT}
|
2023-03-13 16:02:59 +01:00
|
|
|
API_ENCRYPTION_KEY: ${API_ENCRYPTION_KEY}
|
2021-04-08 18:39:46 +02:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2020-12-16 20:50:02 +01:00
|
|
|
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
|
|
|
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
2021-03-29 16:00:40 +02:00
|
|
|
MINIO_URL: http://minio-service:9000
|
2021-11-04 15:53:03 +01:00
|
|
|
APPS_URL: http://app-service:4002
|
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-05-11 16:23:03 +02:00
|
|
|
INTERNAL_API_KEY: ${INTERNAL_API_KEY}
|
2021-04-27 18:29:05 +02:00
|
|
|
REDIS_URL: redis-service:6379
|
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
2024-01-05 13:24:56 +01:00
|
|
|
OFFLINE_MODE: ${OFFLINE_MODE:-}
|
2024-06-21 18:01:27 +02:00
|
|
|
SQS_SEARCH_ENABLE: "true"
|
|
|
|
COUCH_DB_SQL_URL: "http://${COUCH_DB_USER}:${COUCH_DB_PASSWORD}@couchdb-service:4984"
|
2020-12-11 17:38:40 +01:00
|
|
|
depends_on:
|
2021-05-20 13:21:58 +02:00
|
|
|
- redis-service
|
2020-12-11 17:38:40 +01:00
|
|
|
- minio-service
|
|
|
|
|
|
|
|
minio-service:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2023-03-08 14:35:26 +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-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"
|
2022-06-30 21:26:49 +02:00
|
|
|
command: server /data --console-address ":9001"
|
2020-12-11 17:38:40 +01:00
|
|
|
healthcheck:
|
2023-12-08 16:48:24 +01:00
|
|
|
test: "timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1"
|
2020-12-11 17:38:40 +01:00
|
|
|
interval: 30s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 3
|
|
|
|
|
2021-01-05 17:04:12 +01:00
|
|
|
proxy-service:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2022-02-16 14:12:53 +01:00
|
|
|
ports:
|
|
|
|
- "${MAIN_PORT}:10000"
|
2022-02-01 11:26:36 +01:00
|
|
|
container_name: bbproxy
|
2022-08-10 15:32:07 +02:00
|
|
|
image: budibase/proxy
|
2022-08-05 18:41:55 +02:00
|
|
|
environment:
|
|
|
|
- PROXY_RATE_LIMIT_WEBHOOKS_PER_SECOND=10
|
2022-09-05 10:09:43 +02:00
|
|
|
- PROXY_RATE_LIMIT_API_PER_SECOND=20
|
2023-01-11 22:05:44 +01:00
|
|
|
- APPS_UPSTREAM_URL=http://app-service:4002
|
|
|
|
- WORKER_UPSTREAM_URL=http://worker-service:4003
|
|
|
|
- MINIO_UPSTREAM_URL=http://minio-service:9000
|
|
|
|
- COUCHDB_UPSTREAM_URL=http://couchdb-service:5984
|
|
|
|
- WATCHTOWER_UPSTREAM_URL=http://watchtower-service:8080
|
|
|
|
- RESOLVER=127.0.0.11
|
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:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2024-06-21 18:01:27 +02:00
|
|
|
image: budibase/couchdb:v3.3.3-sqs
|
2020-12-11 17:38:40 +01:00
|
|
|
environment:
|
|
|
|
- COUCHDB_PASSWORD=${COUCH_DB_PASSWORD}
|
|
|
|
- COUCHDB_USER=${COUCH_DB_USER}
|
2023-12-08 15:35:07 +01:00
|
|
|
- TARGETBUILD=docker-compose
|
2020-12-11 17:38:40 +01:00
|
|
|
volumes:
|
2021-03-26 15:26:07 +01:00
|
|
|
- couchdb3_data:/opt/couchdb/data
|
2020-12-11 17:38:40 +01:00
|
|
|
|
2021-03-23 12:05:02 +01:00
|
|
|
redis-service:
|
2022-03-24 18:35:35 +01:00
|
|
|
restart: unless-stopped
|
2021-03-23 12:05:02 +01:00
|
|
|
image: redis
|
2024-01-03 13:15:15 +01:00
|
|
|
command: redis-server --requirepass "${REDIS_PASSWORD}"
|
2021-03-23 12:05:02 +01:00
|
|
|
volumes:
|
|
|
|
- redis_data:/data
|
2021-09-16 22:15:09 +02:00
|
|
|
|
2021-05-28 11:09:32 +02:00
|
|
|
watchtower-service:
|
2022-03-23 10:52:27 +01:00
|
|
|
restart: always
|
2021-05-28 11:09:32 +02:00
|
|
|
image: containrrr/watchtower
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2022-02-01 11:26:36 +01:00
|
|
|
command: --debug --http-api-update bbapps bbworker bbproxy
|
2021-05-28 11:09:32 +02:00
|
|
|
environment:
|
|
|
|
- WATCHTOWER_HTTP_API=true
|
|
|
|
- WATCHTOWER_HTTP_API_TOKEN=budibase
|
|
|
|
- WATCHTOWER_CLEANUP=true
|
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
|
|
|
2020-12-11 17:38:40 +01:00
|
|
|
volumes:
|
2021-03-26 15:26:07 +01:00
|
|
|
couchdb3_data:
|
2020-12-11 17:38:40 +01:00
|
|
|
driver: local
|
2021-01-06 17:58:29 +01:00
|
|
|
minio_data:
|
|
|
|
driver: local
|
2021-03-23 12:05:02 +01:00
|
|
|
redis_data:
|
|
|
|
driver: local
|