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

services:
  app-server:
    build: ./wildfly
    container_name: chatbot-wildfly
    image: bht-chatbot:latest
    ports:
      - "8080:8080"
      - "8787:8787"
      - "9990:9990"
    environment:
          POSTGRES_USER: beuthbot_app
          POSTGRES_PASSWORD: VhS7WPVpdYEHYLpf
          POSTGRES_DB: beuthbot
    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/
      - ./wildfly/volumes/modules/org/postgres/main/:/opt/jboss/wildfly/modules/org/postgres/main/
    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:
    image: postgres
    ports:
      - "5432:5432"
    environment:
      POSTGRES_USER: beuthbotuser
      POSTGRES_PASSWORD: VhS7WPVpdYEHYLpf
      POSTGRES_DB: beuthbotdb
    volumes:
       # - ./postgresql/etc/postgresql.conf:/etc/postgresql.conf
       - ./postgresql/var/lib/postgresql/data:/var/lib/postgresql/data
    # command: postgres -c config_file=/etc/postgresql.conf

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