Giter Site home page Giter Site logo

dark-age / daloradius-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frauhottelmann/daloradius-docker

0.0 0.0 0.0 189 KB

A dockerized Daloradius

Home Page: https://hub.docker.com/r/frauhottelmann/daloradius-docker

License: GNU General Public License v3.0

Shell 74.66% Dockerfile 25.34%

daloradius-docker's Introduction

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"

daloradius-docker's People

Contributors

frauhottelmann avatar ic0xgkk avatar patrickhampson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.