| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This project provides a Docker-based setup to run MetaTrader 5 (MT5) using Wine on a Debian-based environment. It leverages Traefik as a reverse proxy for managing HTTP/HTTPS traffic and ensures secure access through Let's Encrypt certificates. The setup includes VNC for remote desktop access and is configured to run as a background service with proper logging and environment management.
Clone the Repository
git clone -b chapter-1 --single-branch https://github.com/sesto-dev/metatrader5-linux-django-docker.git
cd metatrader5-linux-django-dockerConfigure Environment Variables
Create a .env file based on the provided example:
cp .env.example .envOpen the .env file and set the necessary variables:
# Backend - MT5
CUSTOM_USER=admin
PASSWORD=yourpassword
VNC_DOMAIN=your-vnc-domain.com
# Traefik
TRAEFIK_DOMAIN=your-traefik-domain.com
TRAEFIK_USERNAME=yourusername
ACME_EMAIL=youremail@example.comNote: To generate and set the hashed password in one command for Traefik's HTTP Basic Auth, you can use the following command:
export TRAEFIK_HASHED_PASSWORD=$(openssl passwd -apr1 $PASSWORD)Create Docker Network
docker network create traefik-publicBuild and Start the Services
docker-compose up -dThis command builds the Docker images and starts the services in detached mode.
Accessing MetaTrader 5
Navigate to https://your-vnc-domain.com in your web browser to access the VNC interface for MetaTrader 5.
Traefik Dashboard
Access the Traefik dashboard at https://your-traefik-domain.com. You will be prompted for the Traefik username and password configured in the .env file.
Managing Services
Start Services:
docker-compose up -dStop Services:
docker-compose downView Logs:
docker-compose logs -fThe setup uses JSON-file logging with the following configuration:
Logs are managed per service and can be viewed using Docker commands or integrated with external logging solutions like Promtail.
Traefik Not Accessible:
MT5 Not Starting:
VNC Connection Issues:
Contributions are welcome! Please follow these steps:
Fork the Repository
Create a Feature Branch
git checkout -b feature/YourFeatureCommit Your Changes
git commit -m "Add Your Feature"Push to the Branch
git push origin feature/YourFeatureOpen a Pull Request
This project is licensed under the MIT License.
| Back | FazBrowse Home | New Git URL |