Plato Hub makes it easy to develop and manage simulators. This guide will walk you through cloning your first simulator and setting up a development environment.
The plato-config.yml file defines how your simulator runs:
plato-config.yml
Copy
service: espocrm # Service name for this simulatordatasets: base: &base # YAML anchor for reusing configuration compute: &base_compute cpus: 1 # Number of vCPUs allocated to VM memory: 3072 # Memory in MB disk: 10240 # Disk space in MB app_port: 80 # Main application port plato_messaging_port: 7000 # Port for Plato worker (keep unless conflicting with an app port) metadata: &base_metadata name: EspoCRM description: EspoCRM Simulator source_code_url: https://github.com/espocrm/espocrm start_url: https://sims.plato.so # URL to access the running app license: GPL-3.0 variables: # Login credentials for the simulator - name: username value: admin - name: password value: password flows_path: base/flows.yaml # Path to action flow definitions services: &base_services main_app: # Identifier for this service type: docker-compose file: base/docker-compose.yml healthy_wait_timeout: 600 # Max seconds to wait for containers required_healthy_containers: # Containers that must be healthy - espocrm # Container name from docker-compose.yml listeners: &base_listeners db: # Identifier for this listener type: db # Listener type db_type: postgresql # postgresql, mysql, or sqlite db_host: 127.0.0.1 db_port: 5432 db_user: espocrm db_password: espocrm db_database: espocrm volumes: # Volume mounts for signal exchange - /home/plato/db_signals:/tmp/postgres-signals # Format: <vm_path>:<container_path>[:ro|rw] # Add more volumes as needed for your application