Advertisement
A_God

Docker-compose.yaml

Sep 7th, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.60 KB | None | 0 0
  1. version: "3"
  2.  
  3. # optional ports are specified throughout for more advanced use cases.
  4.  
  5. services:
  6.   app-service:
  7.     restart: always
  8.     image: budibase.docker.scarf.sh/budibase/apps
  9.     container_name: bbapps
  10.     ports:
  11.      - "9090:4002"
  12.     environment:
  13.       SELF_HOSTED: 1
  14.       COUCH_DB_URL: http://user:password@couchdb-service:5984
  15.       WORKER_URL: http://worker-service:4003
  16.       MINIO_URL: http://minio-service:9000
  17.       MINIO_ACCESS_KEY: MRS_MINI_9879876
  18.       MINIO_SECRET_KEY: MRS_MINI_9879876
  19.       INTERNAL_API_KEY: MRS_9879876
  20.       BUDIBASE_ENVIRONMENT: PRODUCTION
  21.       PORT: 4002
  22.       JWT_SECRET: MRS_JWT_9879876
  23.       LOG_LEVEL: info
  24.       SENTRY_DSN: https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
  25.       ENABLE_ANALYTICS: "true"
  26.       REDIS_URL: redis-service:6379
  27.       REDIS_PASSWORD: password
  28.     volumes:
  29.      - ./logs:/logs
  30.     depends_on:
  31.      - worker-service
  32.       - redis-service
  33.  
  34.   worker-service:
  35.     restart: always
  36.     image: budibase.docker.scarf.sh/budibase/worker
  37.     container_name: bbworker
  38.     ports:
  39.      - "9091:4003"
  40.     environment:
  41.       SELF_HOSTED: 1
  42.       PORT: 4003
  43.       CLUSTER_PORT: 9080
  44.       JWT_SECRET: MRS_JWT_9879876
  45.       MINIO_ACCESS_KEY: MRS_MINI_9879876
  46.       MINIO_SECRET_KEY: MRS_MINI_9879876
  47.       MINIO_URL: http://minio-service:9000
  48.       COUCH_DB_USERNAME: user
  49.       COUCH_DB_PASSWORD: password
  50.       COUCH_DB_URL: http://user:password@couchdb-service:5984
  51.       INTERNAL_API_KEY: MRS_9879876
  52.       REDIS_URL: redis-service:6379
  53.       REDIS_PASSWORD: password
  54.     volumes:
  55.      - ./logs:/logs
  56.     depends_on:
  57.      - redis-service
  58.       - minio-service
  59.       - couch-init
  60.  
  61.   minio-service:
  62.     restart: always
  63.     image: minio/minio
  64.     volumes:
  65.      - minio_data:/data
  66.     ports:
  67.      - "9092:9000"
  68.     environment:
  69.       MINIO_ACCESS_KEY: MRS_MINI_9879876
  70.       MINIO_SECRET_KEY: MRS_MINI_9879876
  71.       MINIO_BROWSER: "on"
  72.     command: server /data
  73.     healthcheck:
  74.       test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
  75.       interval: 30s
  76.       timeout: 20s
  77.       retries: 3
  78.  
  79.   proxy-service:
  80.     restart: always
  81.     image: envoyproxy/envoy:v1.16-latest
  82.     volumes:
  83.      - ./envoy.yaml:/etc/envoy/envoy.yaml
  84.     ports:
  85.      - "9093:10000"
  86.     depends_on:
  87.      - minio-service
  88.       - worker-service
  89.       - app-service
  90.       - couchdb-service
  91.  
  92.   couchdb-service:
  93.     restart: always
  94.     image: ibmcom/couchdb3
  95.     environment:
  96.      - COUCHDB_PASSWORD=password
  97.       - COUCHDB_USER=user
  98.     ports:
  99.      - "9094:5984"
  100.     volumes:
  101.      - couchdb3_data:/opt/couchdb/data
  102.  
  103.   couch-init:
  104.     image: curlimages/curl
  105.     environment:
  106.       PUT_CALL: "curl -u user:password -X PUT couchdb-service:5984"
  107.     depends_on:
  108.      - couchdb-service
  109.     command: ["sh","-c","sleep 10 && $${PUT_CALL}/_users && $${PUT_CALL}/_replicator; fg;"]
  110.  
  111.   redis-service:
  112.     restart: always
  113.     image: redis
  114.     command: redis-server --requirepass password
  115.     ports:
  116.      - "9095:6379"
  117.     volumes:
  118.      - redis_data:/data
  119.  
  120.   watchtower-service:
  121.     image: containrrr/watchtower
  122.     ports:
  123.      - "9096:8080"
  124.     volumes:
  125.      - /var/run/docker.sock:/var/run/docker.sock
  126.     command: --debug --http-api-update bbapps bbworker
  127.     environment:
  128.      - WATCHTOWER_HTTP_API=true
  129.       - WATCHTOWER_HTTP_API_TOKEN=budibase
  130.       - WATCHTOWER_CLEANUP=true
  131.     labels:
  132.      - "com.centurylinklabs.watchtower.enable=false"
  133.  
  134.  
  135. volumes:
  136.   couchdb3_data:
  137.     driver: local
  138.   minio_data:
  139.     driver: local
  140.   redis_data:
  141.     driver: local
  142.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement