# 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:?} 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