- Dockerfile: builds from Sources/ context, installs stegasoo + verisoo + soosef - docker-compose.yml: single service with persistent volume at /root/.soosef - entrypoint.sh: auto-init on first run, gunicorn with 2 workers Build: cd soosef/docker && sudo docker compose build Run: sudo docker compose up -d Port 35811, HTTPS disabled by default (reverse proxy expected) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
662 B
Bash
27 lines
662 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Initialize if needed (generates identity + channel key + config)
|
|
if [ ! -f "$SOOSEF_DATA_DIR/config.json" ]; then
|
|
echo "First run — initializing SooSeF..."
|
|
soosef init
|
|
echo "Initialization complete."
|
|
fi
|
|
|
|
# Determine HTTPS mode
|
|
HTTPS_FLAG=""
|
|
if [ "${SOOSEF_HTTPS_ENABLED:-true}" = "false" ]; then
|
|
HTTPS_FLAG="--no-https"
|
|
fi
|
|
|
|
echo "Starting SooSeF on port ${SOOSEF_PORT:-35811}..."
|
|
|
|
# Run with gunicorn for production
|
|
exec gunicorn \
|
|
--bind "0.0.0.0:${SOOSEF_PORT:-35811}" \
|
|
--workers "${SOOSEF_WORKERS:-2}" \
|
|
--timeout 180 \
|
|
--access-logfile - \
|
|
--error-logfile - \
|
|
"frontends.web.app:create_app()"
|