Public | Automated Build

Last pushed: 6 hours ago
Short Description
The Nylas Sync Engine provides a RESTful API on top of a powerful email sync platform.
Full Description

Nylas Sync Engine

MySQL

mkdir -p "$HOME/temp/nylas-sync-mysql"
docker run -dit \
    --restart always \
    --name nylas-sync-mysql \
    -v "$HOME/temp/nylas-sync-mysql":/var/lib/mysql \
    -e MYSQL_ROOT_PASSWORD=inboxapp \
    mysql:5.6

Redis

docker run -dit \
    --restart always \
    --name nylas-sync-redis \
    redis

Sync API

docker run -dit \
    --restart always \
    --name nylas-sync-api \
    --link nylas-sync-mysql:mysql \
    --expose 5555 \
    tianon/nylas-sync-engine \
    inbox-api

Sync Engine

docker run -dit \
    --restart always \
    --name nylas-sync-engine \
    --link nylas-sync-mysql:mysql \
    --link nylas-sync-redis:redis \
    --expose 16384 \
    tianon/nylas-sync-engine \
    inbox-start

Auth

$ docker run -it --rm \
    --link nylas-sync-mysql:mysql \
    tianon/nylas-sync-engine \
    inbox-auth jsmith@gmail.com
Docker Pull Command
Owner
tianon
Source Repository

Comments (3)
jcquantin
10 months ago

You needs to explicitly map the port 5555 to sync-api's container by adding -p 5555:5555 on the start command :

docker run -dit \
--restart always \
--name nylas-sync-api \
-p 5555:5555 \
--link nylas-sync-mysql:mysql \
--expose 5555 \
tianon/nylas-sync-engine \
inbox-api

luzin
a year ago

Same issue here. Followed all the recipe and don't know how to find the url. All container are running but cannot find the correct syng engine url

seekr
a year ago

Hi tianon, I've followed your recipe and got my gmail account authenticated on the sync engine.

How should I proceed to point locally installed client to that sync-engine? At the welcome screen I selected "Hosting your own sync engine?" and when asked for the Sync Engine URL I placed localhost, port 5555 but it doesn't seem to work... I believe the engine is running from the command "inbox-start" and "inbox-api" you describe above. I am correct?

Thanks for any guidance.