/daloradius-docker

A dockerized Daloradius

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Daloradius in Docker

About

  • Docker image for Daloradius based on latest Ubuntu LTS
  • includes freeradius 3, Apache, php, MariaDB-client
  • needs a separate MariaDB
  • access under your-ip-or-url/
  • User: administrator Password: radius

Tags

  • versions correspond to Daloradius verisons
  • Docker Hub auto builds amd64, arm64v8 and arm32v7

Cli usage

Both docker and podman are working properly.

podman run -d -it --name daloradius --restart=always \
  --network=<network name> \
  --ip=<ip address> \
  -e MYSQL_DATABASE=<database name> \
  -e MYSQL_PORT=<database port> \
  -e MYSQL_USER=<database user> \
  -e MYSQL_PASSWORD=<database password> \
  -e MYSQL_HOST=<database host> \
  -e TZ=<timezone> \
  frauhottelmann/daloradius-docker

BUT! I strongly recommend you do not change the default MYSQL_PORT because some script in container is not affected by the variables here, or something will be with wrong!

Environment variables

MYSQL_USER

standard value: radius

MYSQL_PASSWORD

standard value: dalodbpass

MYSQL_HOST

standard value: localhost

MYSQL_PORT

standard value: 3306

MYSQL_DATABASE

standard value: radius

TZ

standard value: Europe/Berlin - see List of tz time zones


DALO_VERSION

used for version control


Docker-compose example

If you are using armhf you have to change the MariaDB image. I have provided an example below as a comment.

version: "3"
services:
  radius:
    image: frauhottelmann/daloradius-docker:tag #you need to change the tag to your arch and the desired version
    container_name: radius
    restart: always
    depends_on:
      - "radius-mysql" 
    ports:
      - '1812:1812/udp'
      - '1813:1813/udp'
      - '80:80'
    environment:
      - MYSQL_HOST=radius-mysql
      - MYSQL_PORT=3306
      - MYSQL_DATABASE=radius
      - MYSQL_USER=radius
      - MYSQL_PASSWORD=dalodbpass
  radius-mysql:
    image: mariadb:10.3 # use image: linuxserver/mariadb:arm32v7-110.3.18mariabionic-ls37 for RaspberryPi
    container_name: radius-mysql
    restart: always
    environment:
      - MYSQL_DATABASE=radius
      - MYSQL_USER=radius
      - MYSQL_PASSWORD=dalodbpass
      - MYSQL_ROOT_PASSWORD=dalorootpass
    volumes:
      - "./radius-mysql:/var/lib/mysql"