GNU General Public License v3.0

项目介绍

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

仓库全名
akaunting/docker
开源许可证
GNU General Public License v3.0
Star 数
244
Fork 数
123
未关闭 Issue
31

README 摘要

Akaunting Docker Image You can pull the latest image with docker pull docker.io/akaunting/akaunting:latest Description This repository defines how the official Akaunting images are built for Docker Hub. Akaunting is online, open source and free accounting software built with modern technologies. Track your income and expenses with ease. For more information on Akaunting, please visit the website. Usage Then head to…

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

常见问题

docker 用什么语言开发?

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

docker 可以免费商用吗?

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

如何获取 docker 的源码?

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

docker 最近还在维护吗?

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

关于

Docker Image for Akaunting

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

简要分析

热度分
502
价值分
182
活跃状态
活跃

语言占比

Dockerfile
Shell

README

Akaunting Docker Image

You can pull the latest image with docker pull docker.io/akaunting/akaunting:latest

Description

This repository defines how the official Akaunting images are built for Docker Hub.

Akaunting is online, open source and free accounting software built with modern technologies. Track your income and expenses with ease. For more information on Akaunting, please visit the website.

Usage

git clone https://github.com/akaunting/docker
cd docker
cp env/db.env.example env/db.env
vi env/db.env # and set things
cp env/run.env.example env/run.env
vi env/run.env # and set things

AKAUNTING_SETUP=true docker-compose up -d

Then head to HTTP at port 8080 on the docker-compose host and finish configuring your Akaunting company through the interactive wizard.

After setup is complete, bring the containers down before bringing them back up without the setup variable.

docker-compose down
docker-compose up -d

Please never use AKAUNTING_SETUP=true environment variable again after the first time use.

If you have a database cluster you can take advantage of the following environment variables:

# In env/run.env put:
DB_HOST_WRITE: "example-write"
DB_HOST_READ: "example-read"

You can use Redis with Akaunting for performance enhancement and scalability, if you have a Redis you can take advantage of the following environment variables:

# In env/run.env put:
REDIS_HOST: "example-redis"
# Switch cache driver to redis
CACHE_DRIVER: "redis"
# Switch session driver to redis
SESSION_DRIVER: "redis"
# Switch queue driver to redis
QUEUE_CONNECTION: "redis"

Upgrading

The application files live in the akaunting-data volume, so pulling a newer image updates PHP and the system packages but not Akaunting itself. Upgrade Akaunting from inside the running container instead.

Akaunting 3.2 and later require PHP 8.2. Always switch to the new image before upgrading Akaunting. Upgrading Akaunting on an old PHP 8.1 image leaves the application unable to start.

  1. Back up your database:

    docker exec akaunting-db sh -c 'exec mariadb-dump -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE"' > akaunting-backup.sql
    
  2. Pull the new image and recreate the container:

    docker-compose pull
    docker-compose up -d
    
  3. Upgrade Akaunting and its installed apps:

    docker exec -u www-data akaunting php artisan update:all
    

    You can also do this step from Settings > Updates in the Akaunting web interface.

Do not just copy the new files over the old ones and run php artisan migrate. Some versions also update existing data during the upgrade, and that step only runs through the updater.

Extra ways to explore containerized Akaunting!

This repository contains extra compose and other files that allows you to run Akaunting in different setups like using FPM and NGINX and here is the most important commands that you may need:

# Run Akaunting setup that checks for volume files before copying them.
AKAUNTING_SETUP=true docker-compose -f v-docker-compose.yml up --build

# Run Akaunting with FPM on Debian and use Nginx as external proxy
AKAUNTING_SETUP=true docker-compose -f fpm-docker-compose.yml up --build

# Run Akaunting using FPM on Alpine and using Nginx as external proxy
AKAUNTING_SETUP=true docker-compose -f fpm-docker-compose.yml -f fpm-alpine-docker-compose.yml up --build

# Run Akaunting using FPM on Alpine and using Nginx as internal proxy
AKAUNTING_SETUP=true docker-compose -f fpm-alpine-nginx-docker-compose.yml up --build

# Download Akaunting using git and install composer and npm and run Akaunting using FPM on Alpine and using Nginx as internal proxy
AKAUNTING_SETUP=true docker-compose -f fpm-alpine-nginx-docker-compose.yml -f fpm-alpine-nginx-composer-docker-compose.yml up --build

# Download Akaunting using git and install composer and npm and run Akaunting using FPM on Alpine and using Nginx as internal proxy and supervisor to manage the queues
AKAUNTING_SETUP=true docker-compose -f fpm-alpine-nginx-docker-compose.yml -f fpm-alpine-nginx-composer-supervisor-docker-compose.yml up --build

License

Akaunting is released under the GPLv3 license.

评论

暂无评论