Skip to Content

Deploy Akaunting

Free and open source online accounting software for small businesses and freelancers.

⭐ 12.0k stars📜 GPL-3.0🔴 Advanced⏱ ~20 minutes

What You’ll Get

A fully working Akaunting instance running on your server. Your data stays on your hardware — no third-party access, no usage limits, no surprise invoices.

Prerequisites

  • A server with Docker and Docker Compose installed (setup guide)
  • A domain name pointed to your server (optional but recommended)
  • Basic terminal access (SSH)

The Config

Create a directory for Akaunting and add this docker-compose.yml:

# ------------------------------------------------------------------------- # 🚀 Created and distributed by The AltStack # 🌍 https://thealtstack.com # ------------------------------------------------------------------------- version: '3.8' services: akaunting: image: akaunting/akaunting:latest container_name: akaunting restart: unless-stopped depends_on: - db ports: - "8080:80" environment: - DB_HOST=db - DB_DATABASE=akaunting - DB_USERNAME=akaunting - DB_PASSWORD=akaunting db: image: mariadb:10.6 container_name: akaunting-db restart: unless-stopped environment: - MYSQL_DATABASE=akaunting - MYSQL_USER=akaunting - MYSQL_PASSWORD=akaunting - MYSQL_ROOT_PASSWORD=root volumes: - akaunting_db_data:/var/lib/mysql volumes: akaunting_db_data:

Let’s Ship It

# Create a directory mkdir -p /opt/akaunting && cd /opt/akaunting # Create the docker-compose.yml (paste the config above) nano docker-compose.yml # Pull images and start docker compose up -d # Watch the logs docker compose logs -f

Environment Variables

VariableDefaultRequired
DB_HOSTdbNo
DB_DATABASEakauntingNo
DB_USERNAMEakauntingNo
DB_PASSWORDakauntingNo
MYSQL_DATABASEakauntingNo
MYSQL_USERakauntingNo
MYSQL_PASSWORDakauntingNo
MYSQL_ROOT_PASSWORDrootNo

Post-Deployment Checklist

  • Service is accessible on the configured port
  • Admin account created (if applicable)
  • Reverse proxy configured (Caddy guide)
  • SSL/HTTPS working
  • Backup script set up (backup guide)
  • Uptime monitor added (Uptime Kuma)

The “I Broke It” Section

Container won’t start?

docker compose logs akaunting | tail -50

Port already in use?

# Find what's using the port lsof -i :PORT_NUMBER

Need to start fresh?

docker compose down -v # ⚠️ This deletes volumes/data! docker compose up -d

Going Further