Skip to main content

Akaunting 2024

https://github.com/akaunting/docker

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.


I set up a docker-compose with no need to use .env files

version: '3.7'

services:

  akaunting:
    container_name: akaunting
    image: docker.io/akaunting/akaunting:latest
    ports:
      - 1621:80
    volumes:
      - akaunting-data:/var/www/html
    restart: unless-stopped
    environment:
      APP_URL: http://192.168.1.104:1621
      LOCALE: fr-FR
      DB_HOST: akaunting-db
      DB_PORT: 3306
      DB_NAME: akaunting
      DB_USERNAME: admin
      DB_PASSWORD: PASSWORD
      DB_PREFIX: asd_
      COMPANY_NAME: name
      COMPANY_EMAIL: mail@mail.mail
      ADMIN_EMAIL: admin@mail.mail
      ADMIN_PASSWORD: PASSWORD
      AKAUNTING_SETUP: 'true'
    depends_on:
      - akaunting-db

  akaunting-db:
    container_name: akaunting-db
    image: mariadb
    volumes:
      - akaunting-db:/var/lib/mysql
    restart: unless-stopped
    environment:
      MYSQL_DATABASE: akaunting
      MYSQL_USER: admin
      MYSQL_PASSWORD: PASSWORD
      MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
      
volumes:
  akaunting-data:
  akaunting-db:

Run the setup, then edit the stack `AKAUNTING_SETUP: 'false'`  and deploy again

OR

remove AKAUNTING_SETUP line and complete the setup yourself