2026-10-17 10:49:38 +00:00
|
|
|
services:
|
|
|
|
|
# One-shot build container. Bind-mounts the repo, runs pnpm install + build,
|
|
|
|
|
# writes .output to the host, then exits.
|
|
|
|
|
# Usage: docker compose --profile build run --rm build
|
|
|
|
|
build:
|
|
|
|
|
image: "logigate-build:latest"
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile.build
|
|
|
|
|
volumes:
|
|
|
|
|
- .:/app
|
|
|
|
|
- ./docker-data/node_modules:/app/node_modules
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
profiles:
|
|
|
|
|
- build
|
|
|
|
|
|
|
|
|
|
# Long-running server. Serves the pre-built .output from the host.
|
|
|
|
|
frontend:
|
|
|
|
|
image: "logigate-serve:latest"
|
|
|
|
|
container_name: logigate
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile.serve
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
volumes:
|
|
|
|
|
- ./.output:/app/.output:ro
|
A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
edits save to automatically, others get their own copy. Export, open a
file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
branch, double-click selects the whole signal, multi-select, arrow keys,
colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
as a volume on edgerealm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 11:21:49 +00:00
|
|
|
# Projects shared by link (one JSON file each). Survives redeploys.
|
|
|
|
|
- ./data:/app/data
|
2026-10-17 10:49:38 +00:00
|
|
|
labels:
|
|
|
|
|
traefik.enable: "true"
|
|
|
|
|
traefik.docker.network: "web"
|
|
|
|
|
# nginx on the host terminates TLS with the *.blax.at wildcard cert and
|
|
|
|
|
# forwards plain HTTP to traefik's `web` entrypoint. This router beats
|
|
|
|
|
# blax-nuxt-website's *.blax.at fallback router (priority -100).
|
|
|
|
|
traefik.http.routers.logigate.rule: "Host(`logicate.blax.at`) || Host(`logigate.blax.at`) || Host(`logigate.localhost.at`)"
|
|
|
|
|
traefik.http.routers.logigate.entrypoints: "web"
|
|
|
|
|
traefik.http.routers.logigate.service: "logigate-http"
|
|
|
|
|
traefik.http.services.logigate-http.loadbalancer.server.port: "3000"
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|
name: web
|
|
|
|
|
external: true
|
|
|
|
|
driver: bridge
|