docker-compose.yml 1.24 KB
version: '3'

services:
  app-server:
    build: ./wildfly
    container_name: chatbot-wildfly
    image: bht-chatbot:latest
    ports:
      - "8080:8080"
      - "8787:8787"
      - "9990:9990"
    volumes:
      - ./wildfly/volumes/deployments/:/opt/jboss/wildfly/standalone/deployments/
      - ./wildfly/volumes/logs/:/opt/jboss/wildfly/standalone/log/
      - ./wildfly/volumes/conf/:/opt/jboss/wildfly/standalone/conf/
    links:
      - rasa-server
      - postgres-db
    command: /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 --debug

  rasa-server:
    build: ./rasa_nlu
    container_name: rasa_nlu
    image: rasa_nlu:latest
    ports:
      - "5000:5000"
    volumes:
      - ./rasa_nlu/volumes/data/api/:/app/data/api
      - ./rasa_nlu/volumes/logs/:/app/logs/
    command: python -m rasa_nlu.server -c config/chatbot_config.json --server_model_dirs=default

  postgres-db:
    container_name: chatbot-postgres
    image: postgres
    restart: always
    ports:
       - "5432:5432"
    environment:
      POSTGRES_USER: beuthbot_app
      POSTGRES_PASSWORD: VhS7WPVpdYEHYLpf
      POSTGRES_DB: beuthbot

  adminer:
    container_name: adminer_dbmanagement
    image: adminer
    restart: always
    ports:
      - "8081:8080"