DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.21k stars 2.04k forks source link

Docker Traefik - ERROR: Invalid interpolation format for "labels" option in service "zenbotserver": "traefik.frontend.rule=Host:$(TRAEFIK_HOST_ZEN)" #2663

Closed sebastienhouzet closed 2 years ago

sebastienhouzet commented 3 years ago

System information

zenbot vanilla

Mac OS + Docker

Latest

unstable

10

Before, i have copy .env-sample to .env

$ docker-compose -f docker-compose-traefik.yml up

Yes

Describe the problem

If you want to use docker-compose version with traefik

Source code / Error logs

$ docker-compose -f docker-compose-traefik.yml up ERROR: Invalid interpolation format for "labels" option in service "zenbotserver": "traefik.frontend.rule=Host:$(TRAEFIK_HOST_ZEN)"

chris-aeviator commented 3 years ago

I mostly have this issue when having a string (e.g. from htpasswd) that has a $ in there. I get around this by preprending every $ with another $ , but this might break your usecase. You can try just replacing your ENV variable TRAEFIK_HOST_ZEN with the actual value

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.