Rename the entire workspace:
- Crate packages: quicnprotochat-{core,proto,server,client,gui,p2p,mobile} -> quicproquo-*
- Binary names: quicnprotochat -> qpq, quicnprotochat-server -> qpq-server,
quicnprotochat-gui -> qpq-gui
- Default files: *-state.bin -> qpq-state.bin, *-server.toml -> qpq-server.toml,
*.db -> qpq.db
- Environment variable prefix: QUICNPROTOCHAT_* -> QPQ_*
- App identifier: chat.quicnproto.gui -> chat.quicproquo.gui
- Proto package: quicnprotochat.bench -> quicproquo.bench
- All documentation, Docker, CI, and script references updated
HKDF domain-separation strings and P2P ALPN remain unchanged for
backward compatibility with existing encrypted state and wire protocol.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
80 lines
1.7 KiB
YAML
80 lines
1.7 KiB
YAML
# Docker Compose for interactive chat testing.
|
|
# Usage: ./scripts/chat-test.sh (wraps this file with tmux orchestration)
|
|
|
|
networks:
|
|
chatnet:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
server-data:
|
|
|
|
services:
|
|
server:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.chat-test
|
|
command: >-
|
|
qpq-server
|
|
--listen 0.0.0.0:7000
|
|
--data-dir /data
|
|
--tls-cert /data/server-cert.der
|
|
--tls-key /data/server-key.der
|
|
--auth-token devtoken
|
|
--allow-insecure-auth
|
|
environment:
|
|
RUST_LOG: info
|
|
volumes:
|
|
- server-data:/data
|
|
networks:
|
|
- chatnet
|
|
healthcheck:
|
|
test: ["CMD", "bash", "-c", "echo '' > /dev/tcp/localhost/7000"]
|
|
interval: 3s
|
|
timeout: 2s
|
|
retries: 20
|
|
start_period: 5s
|
|
|
|
alice:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.chat-test
|
|
stdin_open: true
|
|
tty: true
|
|
entrypoint: ["sleep", "infinity"]
|
|
environment:
|
|
RUST_LOG: warn
|
|
QPQ_ACCESS_TOKEN: devtoken
|
|
QPQ_CA_CERT: /data/server-cert.der
|
|
QPQ_SERVER_NAME: localhost
|
|
QPQ_SERVER: "server:7000"
|
|
volumes:
|
|
- server-data:/data:ro
|
|
working_dir: /chat
|
|
networks:
|
|
- chatnet
|
|
depends_on:
|
|
server:
|
|
condition: service_healthy
|
|
|
|
bob:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile.chat-test
|
|
stdin_open: true
|
|
tty: true
|
|
entrypoint: ["sleep", "infinity"]
|
|
environment:
|
|
RUST_LOG: warn
|
|
QPQ_ACCESS_TOKEN: devtoken
|
|
QPQ_CA_CERT: /data/server-cert.der
|
|
QPQ_SERVER_NAME: localhost
|
|
QPQ_SERVER: "server:7000"
|
|
volumes:
|
|
- server-data:/data:ro
|
|
working_dir: /chat
|
|
networks:
|
|
- chatnet
|
|
depends_on:
|
|
server:
|
|
condition: service_healthy
|