closeio/sync-engine

[Help Wanted] Unable to run sync engine via Docker

Closed this issue · 1 comments

I'm trying to run this closeio forked nylas-sync engine (master branch) via given dockerfile/docker-compose files.

But getting various errors:

  1. The docker container for sync-engine stops/exits saying "Don't run nylas sync engine as Root"
  2. Changing the user to sync-engine in docker-compose file fixed the issue, but gave new error cannot import name 'run_with_reloader' from 'werkzeug.serving'. See Image below.

image

Anyone having any idea how to run this project via docker and/or without docker?

Any help is appreciated!

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.