[Help Wanted] Unable to run sync engine via Docker
Closed this issue · 1 comments
themanojshukla commented
I'm trying to run this closeio forked nylas-sync engine (master branch) via given dockerfile/docker-compose files.
But getting various errors:
- The docker container for sync-engine stops/exits saying "Don't run nylas sync engine as Root"
- Changing the user to
sync-engine
in docker-compose file fixed the issue, but gave new errorcannot import name 'run_with_reloader' from 'werkzeug.serving'
. See Image below.
Anyone having any idea how to run this project via docker and/or without docker?
Any help is appreciated!
themanojshukla commented
Issue resolved.
Below things worked for me.
Changed docker-compose.yml
part as follows:
user: sync-engine
ports:
- "5555:5555"
depends_on:
- redis
- mysql
- minio
command:
- bin/inbox-api
- --prod
- --start-syncback
environment:
- NYLAS_ENV=prod
Similar thing can be done for running sync-engine (i.e bin/inbox-start
).
Closing the issue.