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-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
|
|
|
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-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
|
2020-12-18 13:54:20 +01:00
|
|
|
JWT_SECRET: ${JWT_SECRET}
|
2021-03-23 16:37:11 +01:00
|
|
|
LOG_LEVEL: info
|
2021-10-18 15:57:30 +02:00
|
|
|
SENTRY_DSN: https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
|
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}
|
2021-05-28 11:09:32 +02:00
|
|
|
volumes:
|
|
|
|
- ./logs:/logs
|
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
|
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-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
|
|
|
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
|
2021-05-21 15:38:46 +02:00
|
|
|
CLUSTER_PORT: ${MAIN_PORT}
|
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
|
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}
|
2021-05-28 11:09:32 +02:00
|
|
|
volumes:
|
|
|
|
- ./logs:/logs
|
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
|
|
|
|
- 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"
|
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
|
2021-03-26 15:26:07 +01:00
|
|
|
image: ibmcom/couchdb3
|
2020-12-11 17:38:40 +01:00
|
|
|
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
|
|
|
volumes:
|
2021-03-26 15:26:07 +01:00
|
|
|
- couchdb3_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;"]
|
2021-09-16 22:15:09 +02:00
|
|
|
|
2021-03-23 12:05:02 +01:00
|
|
|
redis-service:
|
|
|
|
restart: always
|
|
|
|
image: redis
|
2021-04-27 18:29:05 +02:00
|
|
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
2021-05-24 15:54:47 +02:00
|
|
|
ports:
|
|
|
|
- "${REDIS_PORT}:6379"
|
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:
|
|
|
|
image: containrrr/watchtower
|
2021-09-16 22:15:09 +02:00
|
|
|
ports:
|
|
|
|
- "${WATCHTOWER_PORT}:8080"
|
2021-05-28 11:09:32 +02:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-06-08 12:42:39 +02:00
|
|
|
command: --debug --http-api-update bbapps bbworker
|
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
|