mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
e044fcf359
The rewrite's plan and decisions are in revamp.md. Steps 0 to 10 are done: the workspace and checks, bakashrot-proto, bakashrot-pki and bakashrot-cert, bakashrot-config, bakashrot-storage (schema v9), the server and the client library (every request but replication's, attachments and retention included), the C DLL with its C, PureBasic and Python bindings, and the bakashrot tool. Step 11 (replication) is next. OldSource/ is the old implementation, kept building and passing as the reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVTGs2SsufaH6zquzcb
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
# BakaShrot server, example compose file.
|
|
#
|
|
# Fill in server.ini next to this file first (a private key, topics, a
|
|
# client section: it's empty, the server refuses to start as it is), then,
|
|
# from this folder, with a login to the registry holding the PureBasic
|
|
# images (see the Dockerfile):
|
|
# docker compose up -d --build
|
|
# docker compose logs bakashrot # its public key, for client.ini
|
|
# docker compose down # stops it cleanly (SIGTERM)
|
|
#
|
|
# Console commands (names, vacuum, restart...): `docker attach bakashrot`,
|
|
# detach with Ctrl+P, Ctrl+Q (not Ctrl+C: that stops it).
|
|
#
|
|
# The database lives in the bakashrot-data volume, kept by `down`
|
|
# (`down -v` deletes it).
|
|
|
|
services:
|
|
bakashrot:
|
|
build:
|
|
# The repository's root: the build needs Commons/, Includes/, Server/.
|
|
context: ../..
|
|
dockerfile: Docker/Server/Dockerfile
|
|
image: bakashrot-server
|
|
container_name: bakashrot
|
|
restart: unless-stopped
|
|
ports:
|
|
# server.ini's [BakaShrot.Server] Port.
|
|
- "12345:12345"
|
|
volumes:
|
|
- ./server.ini:/etc/bakashrot/server.ini:ro
|
|
- bakashrot-data:/var/lib/bakashrot
|
|
# Only needed to type console commands with `docker attach bakashrot`.
|
|
# The server runs fine without these two lines.
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
volumes:
|
|
bakashrot-data:
|