forked from LengKundee/MQL5-Google-Onedrive
- Update `docker-compose.yml` to use `mouyleng/mql5-trading-automation:main` pinned to SHA256 digest `3d8a19989bb281c070cc8b478317f904741a52e9ac18a4c3e9d15965715c9372`. - Comment out local build instruction to prioritize the pinned image. - Ensure deployment uses the stable version published ~6 months ago.
28 lines
695 B
YAML
28 lines
695 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
mql5-automation:
|
|
# Use specific version published 6 months ago (main)
|
|
image: mouyleng/mql5-trading-automation@sha256:3d8a19989bb281c070cc8b478317f904741a52e9ac18a4c3e9d15965715c9372
|
|
# build: .
|
|
container_name: mql5-trading-automation
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config:/app/config
|
|
- ./logs:/app/logs
|
|
- ./mt5:/app/mt5
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- TZ=UTC
|
|
networks:
|
|
- mql5-network
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
mql5-network:
|
|
driver: bridge
|