- Inbox: a top-level page, with a count in the menu, for everything waiting for approval; Content's drafts are reviewed there. /drafts redirects to it. - Scheduling: publish a draft now or at a time (migration 3 adds publish_at). A scheduler in the app publishes due drafts every 30 seconds. Posts more than 12 hours overdue, or refused before posting, go back to the Inbox with the reason. Content gets Scheduled and Published tabs. - UTM tags on links to the company's own websites and product pages, added when publishing; drafts stay untagged. - The container runs in the computer's time zone, so times are shown and read correctly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
# Run through `supermarket` (bin/supermarket) or update.sh, which pass
|
|
# --env-file ~/.local/share/supermarket/compose.env with the values below.
|
|
name: supermarket
|
|
|
|
services:
|
|
supermarket:
|
|
build:
|
|
context: .
|
|
args:
|
|
VERSION: ${SUPERMARKET_VERSION:-dev}
|
|
image: supermarket:local
|
|
container_name: supermarket
|
|
restart: unless-stopped
|
|
init: true
|
|
# Run as you, so the files in the data folder stay yours.
|
|
user: "${SUPERMARKET_UID:?}:${SUPERMARKET_GID:?}"
|
|
# Only this computer can reach the app: it has no login of its own.
|
|
ports:
|
|
- "127.0.0.1:8470:8080"
|
|
environment:
|
|
SUPERMARKET_PUBLIC_URL: http://localhost:8470
|
|
# Where the data folder (and the MCP socket Hermes uses) is on the host
|
|
SUPERMARKET_HOST_DATA: ${SUPERMARKET_DATA:?}
|
|
# Your time zone, so times and schedules are shown and read in it
|
|
TZ: ${SUPERMARKET_TZ:-UTC}
|
|
volumes:
|
|
- ${SUPERMARKET_DATA:?}:/data
|
|
# LLM servers on this computer are at host.docker.internal.
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|