StandardNotes-LocalStack
官方Docker 应用程序 from junkerderprovinz Repository
概述
LocalStack companion for the Standard Notes self-hosted backend.
Provides the SNS and SQS endpoints the standardnotes/server image
expects at "localstack:4566".
Required side container. Without it, files-worker.log fills with
"SQSError: SQS receive message failed: getaddrinfo ENOTFOUND
localstack" and notes can duplicate.
Hostname resolution. The server resolves the literal name
"localstack". Pick one:
User-defined Docker network: put both containers on the same
custom bridge and set this container's network alias to
"localstack". Docker's embedded DNS handles the rest.
br0 / macvlan / VLAN / static-IP install: assign this container
a fixed IP on the same VLAN as StandardNotes-Server, then
append --add-host=localstack:LocalStack-IP to
StandardNotes-Server's Extra Parameters and restart it.
Verify from the Unraid host:
docker exec StandardNotes-Server getent hosts localstack
Must print a non-empty line.
Required init script. LocalStack starts empty. The server expects a
fixed set of SNS topics and SQS queues. The "LocalStack Bootstrap
Script" path mapping below mounts the bootstrap script into
/etc/localstack/init/ready.d/ where LocalStack runs it on ready.
Automatic bootstrap on container start runs ONLY when ALL THREE
of the following are true at first start:
a) the host file /mnt/user/appdata/standardnotes/localstack_bootstrap.sh
exists,
b) it is executable (chmod +x),
c) the "LocalStack Bootstrap Script" Path mapping is left at its
default (mapped to /etc/localstack/init/ready.d/localstack_bootstrap.sh).
LocalStack's init/ready.d/ hook fires ONCE per container lifetime.
If the script was missing on first start, restart the container or
use the README emergency-bootstrap one-liner to populate it in place.
Before first start, on the Unraid host:
mkdir -p /mnt/user/appdata/standardnotes
curl -fsSL -o /mnt/user/appdata/standardnotes/localstack_bootstrap.sh \
https://raw.githubusercontent.com/junkerderprovinz/standardnotes-server/main/scripts/localstack_bootstrap.sh
chmod +x /mnt/user/appdata/standardnotes/localstack_bootstrap.sh
Verify after start:
docker exec StandardNotes-LocalStack awslocal \
--endpoint-url=http://localhost:4566 sqs list-queues
docker exec StandardNotes-LocalStack awslocal \
--endpoint-url=http://localhost:4566 sns list-topics
Both must list the *-local-queue / *-local-topic entries.
运行时参数
- 网络
bridge- 外壳
sh- 特权
- false
- 额外参数
--restart=unless-stopped --hostname=localstack
模板配置
LocalStack Edge PortPorttcp
Edge port for SNS / SQS. Reachable from the server container on the same network. Publishing to the host is optional.
- 目标
- 4566
- 默认值
- 4566
- 价值
- 4566
Services (SERVICES)Variable
Required services. Keep sns,sqs.
- 目标
- SERVICES
- 默认值
- sns,sqs
- 价值
- sns,sqs
External Hostname (HOSTNAME_EXTERNAL)Variable
Keep localstack. Server resolves this name.
- 目标
- HOSTNAME_EXTERNAL
- 默认值
- localstack
- 价值
- localstack
Log Level (LS_LOG)Variable
Log level. Default warn.
- 目标
- LS_LOG
- 默认值
- warn
- 价值
- warn
LocalStack Bootstrap ScriptPathro
Required bootstrap script. Creates Standard Notes SNS topics and SQS queues. See Overview for the curl + chmod host-prep commands.
- 目标
- /etc/localstack/init/ready.d/localstack_bootstrap.sh
- 默认值
- /mnt/user/appdata/standardnotes/localstack_bootstrap.sh
- 价值
- /mnt/user/appdata/standardnotes/localstack_bootstrap.sh
下载统计数据
482,725,619
下载总数
详细信息
存储库
localstack/localstack:3.0最后更新2026-05-28
初见2026-05-13
在Unraid 上运行 StandardNotes-LocalStack 。
StandardNotes-LocalStack 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。