config (for all trading images) is made more flexible, docker compose initial

This commit is contained in:
2024-09-09 20:44:49 -04:00
parent 2c26e4d258
commit 26d0b1a4e0
9 changed files with 166 additions and 174 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
BOOK=ALPACA-TEST-BOOK-01
CONFIG=http://cloud23.cvtt.vpn:6789/apps/cvtt_eqt_alpaca
CONFIG=/config/cvtt_eqty_alpaca.cfg
ACTIVE_EXCHANGES=ALPACA_SNDBX-MDPORTAL
#
ADMIN_PORT_EXECUTOR=7222
+4 -2
View File
@@ -6,7 +6,7 @@ version: "3.8"
# ACTIVE_EXCHANGES
# ADMIN_PORT_EXECUTOR
# Start with the command:
# docker compose up -d --pull
# docker compose up -d --pull=always
#==================================================
services:
redis:
@@ -22,6 +22,8 @@ services:
depends_on:
- redis
volumes:
- /opt/shared:/shared
- /opt/cvtt/shared:/shared
- /opt/cvtt/logs:/logs
- /opt/cvtt/config:/config
command: ["-c", "${CONFIG}", "-e", "${ACTIVE_EXCHANGES}", "-a", "${ADMIN_PORT_EXECUTOR}"]
shm_size: "8gb"