diff --git a/multiple_bots_setup/docker-compose.yml b/multiple_bots_setup/docker-compose.yml new file mode 100644 index 0000000..1ffe71b --- /dev/null +++ b/multiple_bots_setup/docker-compose.yml @@ -0,0 +1,44 @@ +version: "3.9" +services: + bot_1: + container_name: bot_1 + image: hummingbot/hummingbot:development + volumes: + - ./credentials/master_account:/home/hummingbot/conf + - ./credentials/master_account/connectors:/home/hummingbot/conf/connectors + - ./instances/bot_1/logs:/home/hummingbot/logs + - ./instances/bot_1/data:/home/hummingbot/data + - ./script_config:/home/hummingbot/conf/scripts + - ./controllers_config:/home/hummingbot/conf/controllers +# environment: +# - CONFIG_PASSWORD=a +# - CONFIG_FILE_NAME=v2_generic_with_controllers.py +# - SCRIPT_CONFIG=conf_v2_generic_with_controllers_1.yml + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: 5 + tty: true + stdin_open: true + bot_2: + container_name: bot_2 + image: hummingbot/hummingbot:development + volumes: + - ./credentials/master_account:/home/hummingbot/conf + - ./credentials/master_account/connectors:/home/hummingbot/conf/connectors + - ./instances/bot_2/logs:/home/hummingbot/logs + - ./instances/bot_2/data:/home/hummingbot/data + - ./script_config:/home/hummingbot/conf/scripts + - ./controllers_config:/home/hummingbot/conf/controllers +# environment: +# - CONFIG_PASSWORD=a +# - CONFIG_FILE_NAME=v2_generic_with_controllers.py +# - SCRIPT_CONFIG=conf_v2_generic_with_contorllers_2.yml + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: 5 + tty: true + stdin_open: true