Image tags in this repository: emulator-*, glue-*, runner-*, dashboard-*, seeder-* (each for linux/arm64 and linux/amd64) and compose-latest (the stack definition). Use them through the commands below, not one by one.
The whole ESP RainMaker Neo backend running locally in Docker, on the AWS Emulator: admin dashboard, APIs, MQTT for devices and a local mail inbox. Docker is the only requirement: no source code, AWS account, Go or Node. Runs on Apple Silicon and Intel (macOS, Linux, Windows with Docker Desktop).
For local testing only. The stack runs with relaxed security; use test accounts and test devices, never real users.
Run Neo locally (one command, Docker only):
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d
Open http://localhost:5174, sign in as [email protected] with Email me a code, and read the code at http://localhost:8025.
ESP32 + phone on the same Wi-Fi (once, ~15 min):
you.dynv6.net), set its IPv4 and two A records (*, *.s3.us-east-1) to your computer's Wi-Fi IP.curl https://get.acme.sh | sh && export DYNV6_TOKEN=<dynv6 token>
~/.acme.sh/acme.sh --issue --server letsencrypt --dns dns_dynv6 --keylength 2048 -d you.dynv6.net -d '*.you.dynv6.net'
mkdir -p $HOME/neo-le && ~/.acme.sh/acme.sh --install-cert -d you.dynv6.net --fullchain-file $HOME/neo-le/fullchain.pem --key-file $HOME/neo-le/privkey.pem
NEO_LAN_HOST=you.dynv6.net NEO_LAN_IP=<Wi-Fi IP> NEO_LAN_CERT_DIR=$HOME/neo-le \
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d
fctry at 0x3E0000 → add the device in the RainMaker Home app (private deployment QR at http://<Wi-Fi IP>:5174/__local/ca).Details for every step follow below.
No files needed; Docker pulls the stack definition and the images (~800 MB) from Docker Hub:
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d
The first start takes about 3 minutes (download, then the backend is set up). When it finishes:
| What | Address |
|---|---|
| Admin dashboard | http://localhost:5174 |
| Mail inbox (all sign-up and sign-in codes) | http://localhost:8025 |
| API | http://localhost:8088 (TLS: https://localhost) |
Prefer a file? Save the stack definition once with docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest config > compose.yml, then run docker compose up -d in that folder. Every command below works the same with -f compose.yml instead of the oci:// address.
An admin [email protected] is created automatically. On the dashboard, enter that address, click Email me a code, and copy the code from the mail inbox. There is no password; you can set one later under Account settings → Password.
# your own admin address on the first start
[email protected] docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d
# add more admins at any time
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest run --rm seeder admin [email protected]
App users sign up normally in the RainMaker Home app or the web app; their codes also land in the mail inbox.
A stock ESP32 running RainMaker Neo firmware and the stock RainMaker Home app connect only to a real domain with a publicly trusted certificate. You give the stack a free domain pointing at your computer's Wi-Fi address plus a Let's Encrypt certificate; nothing changes in the firmware, the app or your router.
You need: a domain you control (a free dynv6 zone works), and the computer, ESP32 and phone on the same Wi-Fi. The examples use neolocal123.dynv6.net and Wi-Fi IP 192.168.71.159: use your own.
ipconfig getifaddr en0, Linux hostname -I, Windows ipconfig.neolocal123.dynv6.net) and set its IPv4 address to that IP.A records with the same IP: name * and name *.s3.us-east-1.Check from any computer: nslookup neolocal123.dynv6.net 1.1.1.1 must print your Wi-Fi IP.
Use RSA 2048. The stock ESP32 firmware leaves out the P-384 curve that Let's Encrypt's ECDSA chain needs, and fails with mbedtls_ssl_handshake returned -0x3A00. The RSA chain ends at ISRG Root X1, which the firmware trusts.
curl https://get.acme.sh | sh # installs acme.sh (once)
export DYNV6_TOKEN=<your dynv6 token>
~/.acme.sh/acme.sh --issue --server letsencrypt --dns dns_dynv6 --keylength 2048 \
-d neolocal123.dynv6.net -d '*.neolocal123.dynv6.net'
mkdir -p ~/neo-le
~/.acme.sh/acme.sh --install-cert -d neolocal123.dynv6.net \
--fullchain-file ~/neo-le/fullchain.pem --key-file ~/neo-le/privkey.pem
Certificates last 90 days; acme.sh renews them automatically. After a renewal, run the start command of 3.3 again so the stack loads the new one.
NEO_LAN_HOST=neolocal123.dynv6.net NEO_LAN_IP=192.168.71.159 NEO_LAN_CERT_DIR=$HOME/neo-le \
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d
Or put the three settings in a file neo.env and add --env-file neo.env to every command:
NEO_LAN_HOST=neolocal123.dynv6.net
NEO_LAN_IP=192.168.71.159
NEO_LAN_CERT_DIR=/Users/me/neo-le
The stack switches every address (API, MQTT, device credentials, file uploads) to your domain in about a minute. Users and devices already created are kept.
| What | LAN address |
|---|---|
| API, phone app | https://neolocal123.dynv6.net |
| ESP32 MQTT | neolocal123.dynv6.net, port 443 (or 8883) |
| Dashboard (other devices) | http://neolocal123.dynv6.net:5174 |
| Phone setup page with the app's QR code | http://192.168.71.159:5174/__local/ca |
Check from your phone's browser (same Wi-Fi): https://neolocal123.dynv6.net/__local/ca opens with a padlock and no warning.
127.0.0.1.fctry is at 0x3E0000 in the light, switch and fan examples; the app does not need reflashing):
esptool.py -p <serial port> write_flash 0x3E0000 <zip>/mfg/bin/<node>.bin
MQTT endpoint: neolocal123.dynv6.net:443 and then connects.Start once without the three settings: docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest up -d.
docker compose -f oci://docker.io/sagardocker890/neo-local:compose-latest down # stop
The AWS Emulator keeps all data in memory. After down, a Docker restart or a reboot, users, devices and files are gone: the next up sets up a fresh, empty backend and recreates your admins. Re-register ESP32 boards from their zip (no reflash) and add them in the app again.
| Symptom | Cause and fix |
|---|---|
ESP32: mbedtls_ssl_handshake returned -0x3A00 | ECDSA certificate. Reissue with --keylength 2048 (3.2), start again |
ESP32: MQTT endpoint: 127.0.0.1:443, connection reset | Node generated in localhost mode. Generate a new node in LAN mode and flash its fctry |
ESP32: -0x7280 or -0x0050; phone can't connect | A VPN or proxy on the computer is cutting port 443. Turn it off, or exclude your Wi-Fi network |
Domain resolves to 198.18.x.x on the computer | VPN fake DNS: same fix; on the computer use http://<Wi-Fi IP>:5174 |
| Nothing connects after a network change | The Wi-Fi IP changed: update the dynv6 records and NEO_LAN_IP, start again. A DHCP reservation on the router avoids this |
| Phone on mobile data can't connect | Expected: the domain points to a private Wi-Fi address. Stay on the same Wi-Fi |
ports are not available | Another program uses one of the ports below: stop it |
Ports used: 443, 5174, 8025, 8088, 8443, 8883, 8884–8890, 9080, 9297 (on 127.0.0.1, and on the Wi-Fi IP for 443, 5174, 8088 and 8883 in LAN mode).
| Image | Contents | Licence |
|---|---|---|
neo-local:emulator-* | AWS Emulator (third-party notices in /opt/aws-emulator/THIRD_PARTY_LICENSES) | CC0-1.0 |
neo-local:runner-*, neo-local:dashboard-* | ESP RainMaker Neo Lambdas and admin dashboard (/licenses/) | Apache-2.0 |
neo-local:glue-*, neo-local:seeder-* | neo-local: the AWS pieces the emulator lacks, and the setup job | neo-local |
axllent/mailpit | Local mail inbox (public image) | MIT |
Every computer generates its own certificates, keys and IDs on first start; none are in the images.
docker pull sagardocker890/neo-local:glue-latest