Skip to content

kulakoff/SmartYard-Server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYS - SmartYard-Server

Only test, not for production!

  1. Clone repos

    make sys_clone_libs
    
  2. Create docker shared network
docker network create --driver bridge --subnet=192.168.100.0/24 shared-network-dev 
  1. Edit config files

    set your external ip or domain in example config files:

    • client config: docker/example_conf/rbt_client_config.json
    • server config: docker/example_conf/rbt_server_config.json
    sed -i 's/127.0.0.2/rbt-domain.com/g' docker/example_conf/SmartYard-Server_*.json
    
  2. Make your SSL certificate

    Make ssl for NGINX and copy to dir docker/nginx/certs:
    use acme.sh copy do this dir or use default or use self-signed SSL:

    docker/nginx/conf.d/certs/nginx.key
    docker/nginx/conf.d/certs/nginx.crt
    
  3. Copy configs to SmartYard-Server project

    copy server, client and asterisk configs

    make sys_copy_configs
    
  4. Start SmartYard-Server

    sudo make sys_start
    
  5. Init db, set admin password

    docker exec -it rbt_app php server/cli.php --init-db
    docker exec -it rbt_app php server/cli.php --init-clickhouse-db
    docker exec -it rbt_app php server/cli.php --admin-password=<your very secret admin password>
    docker exec -it rbt_app php server/cli.php --reindex
    docker exec -it rbt_app php server/cli.php --install-crontabs
    
  6. Stop SmartYard-Server

    sudo make sys_down
    

Create shared network

docker network create --driver bridge --subnet=192.168.100.0/24 shared-network-dev