Ctrl K
ComunidadGuías…

docker-compose.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
services:
  srouter:
    build: .
    image: srouter:latest
    restart: unless-stopped
    ports:
      - "${SROUTER_PORT:-3000}:3000"
    # Match the host user so SQLite has write permissions on the bind-mounted ~/.srouter directory
    user: "${UID:-1000}:${GID:-1000}"
    environment:
      # config.rs derives srouter_dir from HOME, not from DATABASE_PATH, so the
      # importer's temp dirs and backups stay on the same volume as the database.
      HOME: /data
      DATABASE_PATH: /data/srouter.db
      WEB_DIST_PATH: /web
      # Both are filtered when empty. An https:// URL here also turns secure
      # cookies on, and while a password is set it is reset on every boot.
      SROUTER_PUBLIC_URL: ${SROUTER_PUBLIC_URL:-}
      SROUTER_ADMIN_PASSWORD: ${SROUTER_ADMIN_PASSWORD:-}
    volumes:
      - ~/.srouter:/data