arthurd2

BotPress - Docker Compose

Oct 19th, 2022 (edited)
3,077
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.33 KB | None | 0 0
  1. version: "3.6"
  2. services:
  3.     redis:
  4.       image: redis
  5.  
  6.     pgsql:
  7.       image: postgres:11-alpine
  8.       restart: always
  9.       environment:
  10.         POSTGRES_PASSWORD: botpress
  11.         POSTGRES_USER: botpress
  12.         POSTGRES_DB: botpress
  13.       volumes:
  14.        - ./pgsql:/var/lib/postgresql/data
  15.  
  16.     duckling:
  17.       image: botpress/server:v12_19_1
  18.       #command: bash -c "./duckling -p 8000 & ./bp lang  --langDir /botpress/lang --port 3100"
  19.       command: bash -c "./duckling -p 8000 & ./bp lang --readOnly --langDir /botpress/lang --port 3100"
  20.       volumes:
  21.      - ./duckling:/botpress/lang
  22.  
  23.     server:
  24.         image: botpress/server:v12_19_1
  25.         ports:
  26.            - 8080:8080
  27.         depends_on:
  28.            - pgsql
  29.             - duckling
  30.             - redis
  31.         volumes:
  32.            - ./data:/botpress/data
  33.             - ./modules:/botpress/modules
  34.         environment:
  35.           - PORT=8080
  36.            - BP_CONFIG_HTTPSERVER_HOST=0.0.0.0
  37.            - NODE_ENV=production
  38.            - DATABASE_URL=postgres://botpress:botpress@pgsql:5432/botpress
  39.            - BPFS_STORAGE=database
  40.            - CLUSTER_ENABLED=false
  41.            - REDIS_URL=redis://redis:6379
  42.            - BP_MODULE_NLU_DUCKLINGURL=http://duckling:8000
  43.            - BP_MODULE_NLU_LANGUAGESOURCES=[{"endpoint":"http://duckling:3100"}]
  44.  
Advertisement
Add Comment
Please, Sign In to add comment