beeb / pancaketrade

Limit orders for PancakeSwap
GNU General Public License v3.0
200 stars 92 forks source link

docker run error #72

Closed geeks121 closed 2 years ago

geeks121 commented 2 years ago

i want to deploy the app in azure app service but when i build with docker file and try to run i'm facing error ,,

2021-12-16 02:38:09  ERROR  |Config file does not exist at /app/user_data/config.yml
2021-12-16 02:38:09   INFO  |Bye!

i can't run docker-compose or docker compose in azure app service ,,

beeb commented 2 years ago

I have not tested this in azure but if you make sure to provide the config file in the path mentioned in the error message it should work. Read the error message and act accordingly. The provided docker-compose file makes a binding from the host's file system to the container file system at /app/user_data https://github.com/beeb/pancaketrade/blob/c8b7a6a3ec2b426de07d9adbcfc3a76bbb334e2f/docker-compose.example.yml#L10-L12

geeks121 commented 2 years ago

yes i rechecked that file ,, and config file ,,, it exist but when i run with command : docker run -d the error is on the above ,, and if i run with docker-compose up -d the bot work ,, that's is strange for me

beeb commented 2 years ago

please read the documentation for docker run https://docs.docker.com/engine/reference/run/ you can achieve a similar result as with docker-compose but you need to add all the relevant arguments for binding etc.