File size: 1,997 Bytes
d5c3c3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: "rasa-nginx"
restart: "always"
ports:
- "80:80"
volumes:
- "../nginx/index.html:/usr/share/nginx/html/index.html"
- "../nginx/default.conf:/etc/nginx/conf.d/default.conf"
networks:
- rasa-network
rasa:
image: rasa_custom:2.0
build:
context: "../app"
container_name: "rasa"
restart: "always"
ports:
- "5005:5005"
volumes:
- "../app/data:/app/data"
- "../app/models:/app/models"
- "../app/credentials.yml:/app/credentials.yml"
- "../app/endpoints.yml:/app/endpoints.yml"
- "../app/domain.yml:/app/domain.yml"
- "../app/configs:/app/config"
environment:
DB_HOST: db
DB_PORT: "5432" # Replace with your PostgreSQL port
DB_USER: admin # Replace with your PostgreSQL username
DB_PASSWORD: admin # Replace with your PostgreSQL password
DB_DATABASE: rasa # Replace with your PostgreSQL database name
depends_on:
- db
networks:
- rasa-network
action_server:
image: rasa_action:2.0
build:
context: "../app/actions"
container_name: "rasa-actions"
restart: "always"
ports:
- "5055:5055"
volumes:
- "../app/actions:/app/actions"
networks:
- rasa-network
db:
restart: always
image: "postgres:latest" # Use the latest PostgreSQL image
ports:
- "5432:5432"
environment:
POSTGRES_USER: "admin" # Set your desired username
POSTGRES_PASSWORD: "admin" # Set your desired password
POSTGRES_DB: "rasa" # Set your desired database name
volumes:
- ./db:/var/lib/postgresql/data # Persist data outside the container
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin"]
interval: 10s
timeout: 5s
retries: 5
networks:
rasa-network:
driver: bridge
|