GNU General Public License v3.0

项目介绍

LibreCodeCoop/akaunting-docker 是一个托管在 GitHub 上的开源项目,主要使用 Dockerfile 编写,采用 GNU General Public License v3.0 许可证,目前获得 23 个 Star、5 次 Fork。

仓库全名
LibreCodeCoop/akaunting-docker
开源许可证
GNU General Public License v3.0
Star 数
23
Fork 数
5

README 摘要

Akaunting with Docker Docker runtime and Compose configuration maintained by LibreCodeCoop for running Akaunting with PHP-FPM and Nginx. The repository publishes reusable PHP and Nginx runtime images to GHCR. The Akaunting application itself remains in ./volumes/akaunting, so application data and source are independent from the runtime image lifecycle. Requirements Docker Engine Docker Compose v2 (docker compose)…

完整内容见 GitHub 原始 README 或本页 。

常见问题

akaunting-docker 用什么语言开发?

主要使用 Dockerfile 编写,采用 GNU General Public License v3.0 许可证,目前有 23 个 Star。

akaunting-docker 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 akaunting-docker 的源码?

可以直接克隆仓库:git clone https://github.com/LibreCodeCoop/akaunting-docker.git,默认分支为 main;安装与运行步骤见仓库 README。

akaunting-docker 最近还在维护吗?

仓库最近一次更新为 1 天前,当前没有未关闭的 Issue;Star 数为 23,可作为社区活跃度的参考。

关于

Libre and Online Accounting Software

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
34
价值分
15
活跃状态
活跃

语言占比

Dockerfile
PHP
Shell

README

Akaunting with Docker

Docker runtime and Compose configuration maintained by LibreCodeCoop for running Akaunting with PHP-FPM and Nginx.

The repository publishes reusable PHP and Nginx runtime images to GHCR. The Akaunting application itself remains in ./volumes/akaunting, so application data and source are independent from the runtime image lifecycle.

Requirements

  • Docker Engine
  • Docker Compose v2 (docker compose)

Quick start

Clone this repository and start the base Akaunting stack:

docker compose pull
docker compose up -d

The base stack contains Akaunting, Nginx and MySQL. Third-party modules manage their own additional infrastructure. For Brazilian NFS-e and its optional Vault/OpenBao integration, see the akaunting-nfse module.

For local development helpers such as Mailpit, Dufs, and Composer/npm caches:

cp docker-compose.development.example.yml docker-compose.override.yml
docker compose up -d

docker-compose.override.yml is intentionally ignored by Git, so each environment can customize its local deployment without modifying the repository.

Akaunting is installed into volumes/akaunting on the first start.

The runtime compatibility line is controlled by RUNTIME_VERSION. Akaunting 3 currently uses runtime line 3:

ghcr.io/librecodecoop/akaunting-docker-php:3
ghcr.io/librecodecoop/akaunting-docker-nginx:3

The exact Akaunting release used for a new installation is controlled separately by AKAUNTING_VERSION.

Application version

The default application version is declared in docker-compose.yml:

AKAUNTING_VERSION=${AKAUNTING_VERSION:-3.2.4}

Renovate monitors upstream Akaunting releases and proposes updates to this value.

Changing AKAUNTING_VERSION does not automatically upgrade an existing installation when the container restarts. This is intentional: upgrades are explicit operations.

To update an existing installation after reviewing and merging an Akaunting version update:

bash scripts/update-akaunting.sh

The update command checks out the selected Akaunting tag, applies the repository patch, refreshes Composer and frontend dependencies, runs Akaunting’s update command and database migrations, and clears optimized caches.

If the patch no longer applies to a new upstream release, the update stops instead of continuing with a partially patched installation.

Local development

The repository intentionally does not version docker-compose.override.yml.

Use the tracked example as a starting point:

cp docker-compose.development.example.yml docker-compose.override.yml

Then edit docker-compose.override.yml for the local environment. Since Docker Compose loads this file automatically, no extra -f arguments are needed.

The development example enables Xdebug with XDEBUG_MODE=debug. The base runtime keeps Xdebug disabled, so production requests do not pay debugger startup overhead. Override XDEBUG_MODE locally when a different Xdebug mode is needed.

Typical local customizations include:

  • external reverse-proxy networks;
  • an external MySQL service;
  • local domain names;
  • host port mappings;
  • Mailpit and Dufs settings;
  • deployment-specific environment variables.

A root-level .env is optional and is used by Docker Compose to override variable defaults.

Akaunting keeps its own application environment file at:

volumes/akaunting/.env

Building the runtime locally

The default Compose file consumes published GHCR images and intentionally does not contain build: entries.

To test local runtime changes, build the images using the same names expected by Compose:

docker build \
  -t ghcr.io/librecodecoop/akaunting-docker-php:3 \
  .docker/php

docker build \
  --build-arg NGINX_CONF=http \
  -t ghcr.io/librecodecoop/akaunting-docker-nginx:3 \
  .docker/nginx

docker compose up -d

Database

The base stack stores MySQL data in:

volumes/mysql/data

SQL files placed in:

volumes/mysql/dump

are made available to the MySQL image through /docker-entrypoint-initdb.d.

The MySQL port is not published on the host by default. If direct host access is required for development, expose it in docker-compose.override.yml.

To use an external database, override DB_HOST, credentials and networks as needed and disable the akaunting.mysql service in the local deployment configuration.

Application patch

patches/legacy/akaunting-modifications.patch retains the former API-throttling bypass for audit, not application. The current Core 3.2.4 compatibility patches are the reviewed patches/akaunting-3.2.4-*.patch files. Deployment-specific patches belong in volumes/patches/, which is ignored by Git and mounted read-only into the PHP container.

Patches are applied in two stages:

  1. committed patches/*.patch files;
  2. private deployment patches from volumes/patches/*.patch.

Both are applied automatically during first setup and explicit upgrades. Files under volumes/patches/ are persistent local deployment state and are never versioned because the entire volumes/ tree is ignored by Git. Removing a local patch file does not reverse a patch that is already present in the persistent Akaunting checkout; run bash scripts/update-akaunting.sh for the selected version to reset the upstream checkout and apply the current patch set again.

Do not manually git pull the Akaunting master branch inside volumes/akaunting. The installation is intentionally tied to the release selected by AKAUNTING_VERSION.

Dependency updates

Dependency maintenance is split deliberately:

  • Renovate updates only AKAUNTING_VERSION;
  • Dependabot updates Docker Compose images, Dockerfile images and GitHub Actions.

Docker base images are pinned by immutable digest while retaining a readable tag. Dependabot can update the tag/digest pair when a supported update is available.

PHP stays on the Akaunting-supported 8.3 line unless compatibility is intentionally reviewed. Node.js stays on the upstream-supported Node 20 line.

Continuous integration

Pull requests run two kinds of validation:

  1. runtime image builds;
  2. an integration smoke test that:
    • validates Compose and scripts;
    • builds the branch PHP and Nginx images;
    • installs the selected Akaunting release;
    • verifies that the patch applies;
    • starts the stack and checks the HTTP endpoint.

This is especially important for automated Akaunting and dependency update pull requests.

Troubleshooting

Inspect the effective Compose configuration:

docker compose config

Inspect container state and logs:

docker compose ps
docker compose logs

评论

暂无评论