Page 1 of 1

Docker container for Metatrader4

Posted: 28 Aug 2024, 03:17
by Innuendo1980
Hi all, i need to know if is possible to have a docker container deployable on my terramaster F2-423 for Metatrader 4.
I wait for someone could help me on this topic. Thanks

Re: Docker container for Metatrader4

Posted: 28 Aug 2024, 03:31
by makhai
Hi
I don't know this soft, but I suppose you can pull it from docker hub and create a project with a yml conf file

https://hub.docker.com/r/mintjetos/metatrader

Re: Docker container for Metatrader4

Posted: 28 Aug 2024, 03:51
by Innuendo1980
Thanks a lot makhai, I'm not so expert about docker, you think I can find a step by step guide for to deploy this container? Many thanks for your answer

Re: Docker container for Metatrader4

Posted: 29 Aug 2024, 01:11
by makhai
I tried to write a compose file but it seems like this soft need a desktop environment like X11.
I don't think you can use it from your NAS.
Here is the yml file if you want :

Code: Select all

name: mt4
services:
  metatrader:
    image: mintjetos/metatrader:latest
    container_name: mt4
    stdin_open: true
    tty: true
    environment:
      - VERSION=mt4
      - DISPLAY=$DISPLAY # Must be setup on a linux desktop I think
    volumes:
      - mt4:'/home/mint/.mt4/drive_c/ProgramFiles (x86)/MetaTrader 4'
      - /tmp/.X11-unix:/tmp/.X11-unix
      - /tmp/.Xauthority:/tmp/.Xauthority

volumes:
  mt4:
  
I found another docker image accessible with web browser, but with 5th edition
https://github.com/FortesenseLabs/metatrader-terminal
This github repo provide "docker-compose‧mt5.yml" file you can use for project with docker manager

Re: Docker container for Metatrader4

Posted: 01 Sep 2024, 17:24
by Innuendo1980
Thanks makhai i solved creating on the NAS a wm with a light version of windows 11 and mt4 software, it's fully operative and I can check everything in real time also remotely.
Bye