closeio / sync-engine

GNU Affero General Public License v3.0
25 stars 9 forks source link

[Help Wanted] Unable to run sync engine via Docker #511

Closed themanojshukla closed 1 year ago

themanojshukla commented 1 year ago

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!

themanojshukla commented 1 year ago

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.