Files
sh-agentsandsh-agents 57d67e5ff0 store: serve the pages as built, settings from /api/config (#8097)
* store: serve the pages as built, settings from /api/config

* store: badges page reads its Stripe key from the API

* store: badges worker waits for a slow page, not the old build

* store: badges page kept a stale Stripe key after the tab returned

* store: names page read settings the service no longer writes

* store: Caddy had no built sites to serve once the export was gone

* store: two page folders where one mount would do

* store: example Caddyfile missed the bare /api and /webhooks paths

* store: a hand-written page copy script where rsync does it

---------

Co-authored-by: sh-agents <350651734+sh-agents@users.noreply.github.com>
2026-11-14 12:26:54 +00:00

46 lines
1.1 KiB
YAML

services:
store-service:
image: simplex-store-service:latest
build:
context: ../..
dockerfile: scripts/store-service/Dockerfile
target: runtime
args:
USER_UID: ${USER_UID:-1000}
USER_GID: ${USER_GID:-1000}
restart: unless-stopped
user: "${USER_UID:-1000}:${USER_GID:-1000}"
tty: true
network_mode: host
command:
- "-d"
- "${BADGE_DB_CONN:-postgresql://simplex@127.0.0.1:5432/badge_service}"
- "--create-schema"
- "--yes-migrate"
- "--service-config"
- "/etc/simplex-store-service/store_service.ini"
volumes:
- type: bind
source: ./config
target: /etc/simplex-store-service
read_only: true
bind:
create_host_path: false
stop_grace_period: 10s
webapps:
image: simplex-store-webapps:latest
build:
context: ../..
dockerfile: scripts/store-service/Dockerfile
target: webapps
restart: "no"
user: "${USER_UID:-1000}:${USER_GID:-1000}"
network_mode: none
volumes:
- type: bind
source: ./webapps
target: /out
bind:
create_host_path: false