专属
文档
插件
助手
邀请
顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单页面收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题轩辕镜像免费版
其他
关于我们网站地图
热门搜索:
satis-server

lukaszlach/satis-server

lukaszlach

Private, self-hosted Composer repository with unlimited packages, supports Git, Mercurial, and SVN.

6 次收藏下载次数: 0状态:社区镜像维护者:lukaszlach仓库类型:镜像最近更新:8 年前
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

使用轩辕镜像,把时间还给真正重要的事。点击查看
镜像简介
标签下载
镜像标签列表与下载命令
使用轩辕镜像,把时间还给真正重要的事。点击查看

lukaszlach / satis-server

https://github.com/lukaszlach/satis-server

Supported tags and respective Dockerfile links

  • 1.1 (https://github.com/lukaszlach/satis-server/blob/1.1/Dockerfile)
  • 1.0 (https://github.com/lukaszlach/satis-server/blob/1.0/Dockerfile)
  • latest (https://github.com/lukaszlach/satis-server/blob/master/Dockerfile)

Satis Server provides ready to use solution for self-hosted repository of Composer packages, it is distributed as a lightweight https://hub.docker.com/r/lukaszlach/satis-server/ based on Alpine Linux. With the power of https://github.com/composer/satis, https://github.com/composer/composer and https://github.com/adnanh/webhook projects, it provides a set of powerful tools:

  • Private, self-hosted Composer repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion.
  • API - HTTP API with several endpoints allowing you to add and remove packages, build one single package or whole repository, list packages with last build date information, show package details, dump Satis configuration file. Access to the API can be restricted to selected subnetwork mask.
  • Webhook handler - bind HTTP PUSH event in GitHub, GitLab or Beanstalk to automatically rebuild Satis index just after commit is made. This HTTP endpoint can be secured with a pre-shared key.
  • Scheduled builds - periodically rebuild whole Satis repository, based on crontab expression.
  • Command-line interface - manage Satis Server from command-line, all Satis API endpoints are available as shell commands.
  • Build notifier - send message to Slack or HipChat channel when repository or single package is rebuilt.
  • HTTPs support.

Installing

Use automated install script, that pulls Docker image, creates directory structure and configuration files and installs start/stop commands for you, by executing below command. If you prefer to do it manually - proceed with usage instructions, as Docker image will download automatically on first usage.

bash
export SATIS_SERVER_VERSION=latest
curl -L "https://raw.githubusercontent.com/lukaszlach/satis-server/$SATIS_SERVER_VERSION/install" | bash

You will see "satis-server installed and running" message after installation is done, satis.json file is created under /etc/satis (if did not exist before), this is also repository build directory where output JSON/ZIP files are stored. Configuration directory /etc/satis-server holds satis-server.conf that allows you to modify settings.

Installation process also adds satis-server-start and satis-server-stop management commands and satis-server-help command.

You can use the same commands to upgrade Satis Server to newer version, all your configuration values, repository settings and packages will be preserved. Just change SATIS_SERVER_VERSION to desired version.

Building manually

You need to have Docker installed to run this project.

bash
git clone https://github.com/lukaszlach/satis-server.git satis-server/
cd satis-server/
# build the "lukaszlach/satis-server:latest" image
make

Running

If you have installed Satis Server using automated install script there are satis-server-start and satis-server-stop commands already available on your server, below section covers manual installations.

In order to properly run Satis Server Docker container you need to pass at least one volume:

  • (required) directory where satis.json configuration is kept and where built files will be stored, i.e. /etc/satis
  • (optional) satis-server configuration directory, allows adding your own SSH key to use with private repositories and handle HTTPs, i.e. /etc/satis-server
  • (optional) satis-server working directory where current status is kept, i.e. /var/satis-server

In case /etc/satis/satis.json does not exist in the container it will be created with empty repository settings.

If you do not bind working directory volume, packages "last updated" information displayed by HTTP endpoints will be missing after Docker container is restarted. However, they can be always regenerated by rebuilding the repository or a single package.

Container exposes Satis API on ports 80 and 443, second one is reachable only with configured HTTPs.

Below command runs Satis Server listening on port 8080:

bash
docker run -d \
    -p 8080:80 \
    -v /etc/satis:/etc/satis/ \
    -v /etc/satis-server/:/etc/satis-server/ \
    -v /var/satis-server/:/var/satis-server/ \
    --name satis_server \
    lukaszlach/satis-server:latest

You can also try an example docker-compose.yml file provided in this repository:

bash
docker-compose -f docker-compose.yml.example up -d

Run docker logs satis_server -f to monitor logs or docker stop satis_server to stop the container.

You can always view the documentation you are currently reading by calling docker run --rm lukaszlach/satis-server:latest help

Configuration

satis-server.conf

Automated installation creates configuration file under /etc/satis-server/satis-server.conf that is used by docker-compose.yml file from the same directory to start and stop the service, environment variables are passes automatically. This file has simple FIELD=value structure, currently below options are recognized:

  • PORT - TCP port on which Satis API will listen on, default 8080
  • SSL_PORT - default 443
  • REBUILD_AT - see Scheduled builds
  • PUSH_SECRET - see Securing with a pre-shared key
  • API_ALLOW - see Restricting access to API
  • NOTIFY_DEBUG - set to 1 to include extra information in notifications
  • NOTIFY_HIPCHAT and HIPCHAT_* variables - see Build notifier » HipChat
  • NOTIFY_SLACK and SLACK_* variables - see Build notifier » Slack

satis-server.conf.example file with example configuration is available in root directory of this repository.

SSH key for private repositories

In order to use private repositories (including GitHub) you have to provide SSH key that both Composer and Satis will use to fetch repository contents.

SSH key should be available under /etc/satis-server/ssh/id_rsa file. If runnning manually you can do it with -v /etc/satis-server:/etc/satis-server to mount the whole config directory or -v /path/to/id_rsa:/etc/satis-server/ssh/id_rsa to mount this single file only.

HTTPs

If you want to serve Satis API and webhook handler through HTTPs you need to place cert.pem and key.pem files inside /etc/satis-server/https/ configuration directory. Existence of these files is detected automatically and after restart satis-server starts working over SSL.

Scheduled builds

You can easily configure Satis Server to automatically rebuild the whole Satis repository once a day or every few hours/minutes.

For automated installation you have to edit REBUILD_AT in /etc/satis-server/satis-server.conf, when running Docker image manually pass SATIS_REBUILD_AT environment variable i.e. -e SATIS_REBUILD_AT="1 0 * * *" to rebuild at one minute past midnight (00:01) every day. The value must be a valid crontab expression.

Use your repository

Point Satis Server repository in your composer.json and require your packages by name, exactly as public packages.

json
{
    "repositories": [
        {"type": "composer", "url": "https://your-server/"}
    ],
    "require": {
        "org/foo": "~1.0",
        "org/bar": "dev-master",
        "php-amqplib/php-amqplib": "v2.6.3"
    }
}

For more details read Composer documentation on how to modify composer.json to work with your private repository.

Such change in composer.json requires composer update command to be executed in order to update composer.lock file.

If Satis Server does not work over HTTPs you need to set secure-http to false.

Satis API

All HTTP endpoints are executing shell command underneath and return 200 OK in case of success or 500 Internal Server Error otherwise. Both application/x-www-form-urlencoded and application/json payloads are properly handled by all endpoints.

Raw command outputs are returned, sometimes including shell colors but this is useful when running on CI environments and sending HTTP requests from command-line.

Since Satis repository files can be found under / URL path, Satis API endpoints are available under /api.

/push

PUSH events handler, returns immediately and does not wait for build to finish.

$ curl -sS -d'url=https://github.com/php-amqplib/php-amqplib' http://your-server:8080/api/push
$ curl -sS -d'{"repository":{"url":"https://github.com/php-amqplib/php-amqplib"}}' -H'Content-Type: application/json' http://your-server:8080/api/push

Point http://your-server:8080/api/push as an URL to handle PUSH events on your repository.

Securing

As this endpoint is meant to be called by external services, you can protect it with a pre-shared key that will be required to call /api/push endpoint, it looks for secret query parameter so your final URL should look like this: http://your-server:8080/api/push?secret=<PRE_SHARED_KEY>.

To set the pre-shared key, either modify PUSH_SECRET variable in /etc/satis-server/satis-server.conf or pass it's value via environment variable: -e PUSH_SECRET=d5a7c0d0c897665588cd0844744e3109.

Integration

See below links for documentation how PUSH events work and how to configure them:

  • GitHub - https://developer.github.com/v3/activity/events/types/#pushevent
  • GitLab - [***]
  • Beanstalk - [***]

/add

Add new package to Satis repository, send POST request and repository URL in url parameter.

$ curl -sS -d'url=https://github.com/php-amqplib/php-amqplib' http://your-server:8080/api/add
Your configuration file successfully updated! It's time to rebuild your repository  

/remove

Remove package from Satis repository by URL, send POST request and point repository in url parameter.

$ curl -sS -d'url=https://github.com/php-amqplib/php-amqplib' http://your-server:8080/api/remove
Successfully removed https://github.com/php-amqplib/php-amqplib

/build

Build a single package with matching repository URL, send POST request and point repository in url parameter.

$ curl -sS -d'url=https://github.com/php-amqplib/php-amqplib' http://your-server:8080/api/build
Scanning packages
Reading composer.json of php-amqplib/php-amqplib (v1.0)
Skipped tag v1.0, no composer file
Reading composer.json of php-amqplib/php-amqplib (v1.1)
Importing tag v1.1 (1.1.0.0)
Reading composer.json of php-amqplib/php-amqplib (v1.2.0)
Importing tag v1.2.0 (1.2.0.0)
...

/build-all

Rebuild whole package repository, request is hold until process is done and it's output is returned.

$ curl -sS http://your-server:8080/api/build-all
Scanning packages
...

/show

Display details about selected package, send POST request and point repository in url parameter.

$ curl -sS -d'url=https://github.com/php-amqplib/php-amqplib' http://your-server:8080/api/show
Package: php-amqplib/php-amqplib
Description: Formerly videlalvaro/php-amqplib.  This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.
Authors: Alvaro Videla, John Kelly, Raúl Araya
Releases: dev-channel_connection_closed, dev-master, dev-revert-460-HHVM-compat-bugfix, v1.1, v1.2.0, v1.2.1, v2.0.0, v2.0.1, v2.0.2, v2.1.0, v2.2.0, v2.2.1, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.3.0, v2.4.0, v2.4.1, v2.5.0, v2.5.1, v2.5.2, v2.6.0, v2.6.1, v2.6.2, v2.6.3, v2.7.0-rc1
Homepage: https://github.com/php-amqplib/php-amqplib/
Last built: Mon Jul 31 19:27:55 2017

/list

List all packages in Satis repository.

$ curl -sS http://your-server:8080/api/list
PACKAGE NAME                    PACKAGE URL                                             LAST UPDATED
php-amqplib/php-amqplib         https://github.com/php-amqplib/php-amqplib              Mon Jul 31 19:27:55 2017

/dump

Dump satis.json configuration file.

$ curl -sS http://your-server:8080/api/dump
{
    "name": "Your Repository",
    "homepage": "http://your-server",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/php-amqplib/php-amqplib"
        }
    ]
}

/version

Display versions of satis-server, Satis, Composer and PHP used inside the container.

$ curl -sS http://your-server:8080/api/version
satis-server 1.0 (build 20170731-24b177b)
Satis 1.0.0-dev
Composer version 1.4.2 2017-05-17 08:17:52
PHP 7.1.5 (cli) (built: May 13 2017 00:09:07) ( NTS )
webhook version 2.6.4

/help

View HTML version of this documentation in web browser.

http://your-server:8080/help

Restricting access to API

All Satis API endpoints can be restricted to specific subnetwork, except for /api/push which can be secured using pre-shard key.

By default API is opened for everyone, meaning 0.0.0.0/0. To restrict access, set API_ALLOW to a valid subnetwork mask in CIDR notation. If you are running Docker image manually, pass API_ALLOW environment variable: -e API_ALLOW=192.168.1.0/24.

Command-line interface

All Satis API commands are available as shell commands inside the container. See available commands and example usages below.

Enter satis-server and execute command

$ docker exec -it satis_server sh
/satis-server # satis-<TAB><TAB>
satis-add             satis-build-all       satis-list            satis-server
satis-build           satis-dump            satis-remove          satis-show
satis-server-version  satis-server-help


/satis-server # satis-show "https://github.com/php-amqplib/php-amqplib"

Execute command directly on a running container

$ docker exec satis_server satis-show "https://github.com/php-amqplib/php-amqplib"

Create command alias for portability

$ alias satis-server='docker exec satis_server'
$ satis-server satis-show "https://github.com/php-amqplib/php-amqplib"

Build notifier

Notifications are sent before and after single package or the whole repository is built. To enable them you have to either edit /etc/satis-server/satis-server.conf file for automated installation or pass values as environment variables to Docker, i.e. -e NOTIFY_HIPCHAT=1 -e ....

HipChat

Set NOTIFY_HIPCHAT=1 to enable HipChat notifications (example), you will also have to provide:

  • HIPCHAT_API - base URL of your HipChat API, including trailing slash
  • HIPCHAT_ROOM - room ID
  • HIPCHAT_TOKEN - room notification token

Slack

Set NOTIFY_SLACK=1 to enable Slack notifications (example), you will also have to provide:

  • SLACK_URL - "Incoming WebHook" URL
  • SLACK_ROOM - room name

Examples

All possible parameters

So you can just remove what is not needed and replace rest with your values.

bash
docker run -d \
    -p 8080:80 \
    -v /etc/satis:/etc/satis/ \
    -v /etc/satis-server/:/etc/satis-server/ \
    -v /var/satis-server/:/var/satis-server/ \
    -e PORT=8080 \
    -e SSL_PORT=443 \
    -e REBUILD_AT="1 0 * * *" \
    -e PUSH_SECRET=d5a7c0d0c897665588cd0844744e3109 \
    -e API_ALLOW="0.0.0.0/0" \
    -e NOTIFY_DEBUG=1 \
    -e NOTIFY_HIPCHAT=1 \
    -e HIPCHAT_API=https://hipchat.server.com/ \
    -e HIPCHAT_ROOM=123 \
    -e HIPCHAT_TOKEN=XTlyCeYH8rFhgjA4sJ8tu8UBnYhrmFOTPr5gM3J0 \
    -e NOTIFY_SLACK=1 \
    -e SLACK_ROOM=dev \
    -e SLACK_URL=https://hooks.slack.com/services/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 \
    --name satis_server \
    lukaszlach/satis-server:latest

Licence

MIT License

Copyright (c) 2017 Łukasz Lach

Portions Copyright (c) 2015 Adnan Hajdarevic <***>, Portions Copyright (c) Composer, Portions Copyright (c) 2012 Stephen Dolan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 satis-server 镜像标签

docker pull docker.xuanyuan.run/lukaszlach/satis-server:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull lukaszlach/satis-server:<标签>

更多 satis-server 镜像推荐

composer/satis logo

composer/satis

composer
简单的静态Composer仓库生成工具。
43 次收藏500万+ 次下载
2 天前更新
linuxserver/code-server logo

linuxserver/code-server

LinuxServer.io 社区镜像
linuxserver/code-server是VS Code服务器版Docker镜像,可在浏览器中运行完整VS Code开发环境,无需本地安装即可跨设备访问。支持全部VS Code扩展、代码同步与终端功能,适配远程开发、团队协作或低配置设备场景。镜像经linuxserver优化,兼容ARM/AMD架构,内置持久化存储与安全配置,开箱即用,轻松打造云端IDE,提升开发灵活性与效率。
737 次收藏5000万+ 次下载
4 天前更新
linuxserver/openssh-server logo

linuxserver/openssh-server

LinuxServer.io 社区镜像
提供OpenSSH服务器服务,支持远程登录与服务器管理,具备易于部署、配置灵活的特点,适用于各类需要安全远程访问的场景。
146 次收藏1000万+ 次下载
24 天前更新
mailserver/docker-mailserver logo

mailserver/docker-mailserver

mailserver
一个全栈且简单易用的邮件服务器,支持SMTP、IMAP协议,集成LDAP、反垃圾邮件及反病毒等功能。
263 次收藏1000万+ 次下载
20 小时前更新
linuxserver/sonarr logo

linuxserver/sonarr

LinuxServer.io 社区镜像
由LinuxServer.io提供的Sonarr容器,是一款专为电视节目集管理设计的自动化工具,能够监控指定剧集的更新信息、自动从索引器获取下载链接并通过下载客户端(如Deluge、qBittorrent等)完成资源下载,同时支持按自定义规则整理文件结构、重命名剧集文件以保持媒体库整洁有序;LinuxServer.io作为专注于提供高质量容器化应用的团队,其构建的Sonarr容器基于轻量级Linux系统,优化了资源占用与运行稳定性,适合家庭媒体服务器或个人影视库的自动化管理场景使用。
2.1千 次收藏10亿+ 次下载
5 天前更新
linuxserver/jackett logo

linuxserver/jackett

LinuxServer.io 社区镜像
这是由LinuxServer.io提供的Jackett容器,其中Jackett是一款实用的种子索引聚合工具,能够整合多个torrent追踪器的搜索结果,为qBittorrent、Deluge等各类P2P下载客户端提供统一的搜索接口,帮助用户更便捷地查找和获取所需资源;而LinuxServer.io团队凭借专业的容器化技术,确保该Jackett容器具备稳定的运行环境、简便的部署流程以及持续的更新支持,可满足用户在不同系统环境下高效使用Jackett的需求。
1.2千 次收藏10亿+ 次下载
8 小时前更新

查看更多 satis-server 相关镜像

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

需要其他帮助?请查看我们的 常见问题 Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

排错

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

DNS 超时

DNS 解析 · 网络超时

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
lukaszlach/satis-server
博客Docker 镜像公告与技术博客
热门查看热门 Docker 镜像推荐
教程轩辕镜像功能与使用教程
安装一键安装 Docker 并配置镜像源
官方公众号:源码跳动|官方技术交流群:13763429
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.