Prerequisites
Section titled “Prerequisites”- Docker Engine installed on your system
Choose a Setup
Section titled “Choose a Setup”The simplest option. This runs only the FOSSBilling container, so you must provide your own database service.
docker run -d \ --name fossbilling \ -p 127.0.0.1:8080:80 \ -v fossbilling:/var/www/html \ --restart unless-stopped \ fossbilling/fossbilling:latestThis option brings up FOSSBilling and MariaDB together, which makes it the fastest way to get started.
services: fossbilling: image: fossbilling/fossbilling:latest restart: unless-stopped ports: - "127.0.0.1:8080:80" volumes: - fossbilling:/var/www/html depends_on: - mariadb
mariadb: image: mariadb:lts restart: unless-stopped environment: MARIADB_DATABASE: fossbilling MARIADB_USER: fossbilling MARIADB_PASSWORD: ${MARIADB_PASSWORD:?set-a-strong-database-password} MARIADB_RANDOM_ROOT_PASSWORD: "1" volumes: - mariadb:/var/lib/mysql
volumes: fossbilling: mariadb:For a new installation, create a .env file beside docker-compose.yml. Replace the placeholder with a strong database password and keep the file private.
MARIADB_PASSWORD='replace-with-a-strong-password'Start the stack from that directory. Compose reads .env automatically.
docker compose up -dThe first startup downloads container images and may take a few minutes. Keep the same MARIADB_PASSWORD when starting the stack again with the existing database volume.
Database credentials (if using the example above):
- Hostname:
mariadb - Database:
fossbilling - Username:
fossbilling - Password: the value of
MARIADB_PASSWORDin.env
Complete the Installer
Section titled “Complete the Installer”If your browser runs on the Docker host, open http://localhost:8080 to continue with the installer. This HTTP endpoint is intended only for local setup on the Docker host.
For remote or production use, configure a TLS-terminating reverse proxy that forwards X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Proto: https, then enable trusted-proxy support when prompted and complete the installer using its HTTPS URL, such as https://billing.example.com (see reverse-proxy setup). Do not replace the loopback mapping with a public port and enter installer credentials over remote HTTP.
Post-Installation
Section titled “Post-Installation”The official Docker image runs FOSSBilling cron automatically every five minutes inside the container.
You do not need to add a host crontab entry when using the official Docker image.
See Docker Updates when updating FOSSBilling or replacing its container image.