Fixed mt5 container. Runs without errors

This commit is contained in:
Mike
2023-07-16 04:14:41 +02:00
parent 52851c97e8
commit 58c682bcfd
4 changed files with 74 additions and 10 deletions
+22 -9
View File
@@ -1,21 +1,27 @@
version: "3"
services:
metatrader_service:
build:
context: .
dockerfile: docker/DockerFile.xorg
container_name: metatrader
image: ejtrader/metatrader:5
restart: unless-stopped
environment:
- DISPLAY=$DISPLAY
privileged: true
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./mt5:/mt5
devices:
- /dev/dri:/dev/dri
ports:
- "5900:5900"
- "15555:15555"
- "15556:15556"
- "15557:15557"
- "15558:15558"
volumes:
- ejtraderMT:/data
environment:
- DISPLAY=host.docker.internal:0
- MT5_PASSWORD=your_password
- MT5_SERVER=your_server
networks:
- trading_network
trading_bot:
container_name: trading_bot
@@ -24,8 +30,12 @@ services:
dockerfile: docker/DockerFile
volumes:
- ./app:/app
ports:
- 3000:3000
depends_on:
- metatrader_service
networks:
- trading_network
mt5_bridge:
container_name: mt5_bridge
@@ -37,6 +47,9 @@ services:
depends_on:
- metatrader_service
- trading_bot
networks:
- trading_network
volumes:
ejtraderMT: {}
networks:
trading_network:
driver: bridge