docker compose
This commit is contained in:
parent
7052563d3b
commit
0624f35ddd
3
docker/trading/compose/.env
Normal file
3
docker/trading/compose/.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
BOOK=ALPACA-TEST-BOOK-01
|
||||||
|
CONFIG_SERVER=cloud23.cvtt.vpn:6789
|
||||||
|
ACTIVE_EXCHANGES=ALPACA_SNDBX-MDPORTAL
|
||||||
@ -2,20 +2,20 @@ version: "3.8"
|
|||||||
#==================================================
|
#==================================================
|
||||||
# Relies on the file `.env` content for varables:
|
# Relies on the file `.env` content for varables:
|
||||||
# BOOK
|
# BOOK
|
||||||
# JUPYTER_PORT
|
# CONFIG_SERVER
|
||||||
|
# ACTIVE_EXCHANGES
|
||||||
|
# Start with the command:
|
||||||
|
# docker compose up -d --pull
|
||||||
#==================================================
|
#==================================================
|
||||||
services:
|
services:
|
||||||
executor:
|
executor:
|
||||||
image: cloud21.cvtt.vpn:5500/executor:latest
|
image: cloud21.cvtt.vpn:5500/executor:latest
|
||||||
container_name: executor.${BOOK}
|
container_name: executor.${BOOK}
|
||||||
restart: unless-stopped
|
network_mode: "host"
|
||||||
environment:
|
environment:
|
||||||
- BOOK=${BOOK}
|
- ADMIN_PORT=7222
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${ROOT_DIR}/notebooks:/workspace
|
- /opt/shared:/shared
|
||||||
- ${ROOT_DIR}/jupyter_settings/user-settings:/root/.jupyter/lab/user-settings
|
command: ["-c", "${CONFIG_SERVER}", "-e", "${ACTIVE_EXCHANGES}", "-a", "${ADMIN_PORT}"]
|
||||||
- ${ROOT_DIR}/jupyter_settings/workspaces:/root/.jupyter/lab/workspaces
|
shm_size: "8gb"
|
||||||
- ${ROOT_DIR}/.cache/torch:/root/.cache/torch
|
|
||||||
ports:
|
|
||||||
- "${JUPYTER_PORT}:${JUPYTER_PORT}"
|
|
||||||
shm_size: "8gb"
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user