keegan337/radiusdesk

By keegan337

Updated 6 months ago

Dockerised Radiusdesk

Image
Networking
Monitoring & observability
0

4.4K

keegan337/radiusdesk repository overview

RADIUSdesk Docker

Dockerised version of RADIUSdesk.

Radiusdesk using cake4 needs a database running in the same docker network as it. Find details here: https://github.com/keeganwhite/radiusdesk-docker.

Docker Compose

Use the following to run the cake4 radius desk:

services:
  radiusdesk:
    image: keegan337/radiusdesk:4.0.0
    container_name: radiusdesk
    environment:
      - "PHP_INI_SCAN_DIR=:/p/gd"
      - "PHP.cgi.fix_pathinfo=1"
      - "PHP_SELF=/index.php"
      - "PHP_INI_SCAN_DIR=:/p/sqlite3"
    restart: unless-stopped
    depends_on:
      rdmariadb:
        condition: service_healthy
    ports:
      - '80:80'
      - "1812:1812/udp"
      - "1813:1813/udp"

  rdmariadb:
    image: docker.io/bitnami/mariadb:10.5
    container_name: radiusdesk-mariadb
    restart: unless-stopped
    volumes:
      - ./db_conf/my_custom.cnf:/opt/bitnami/mariadb/conf/my_custom.cnf:ro
      - ./db_startup:/docker-entrypoint-initdb.d:ro
      - rd_data:/bitnami/mariadb
    environment:
      - "ALLOW_EMPTY_PASSWORD=yes"
      - "MARIADB_ROOT_PASSWORD=rd"
      - "MARIADB_USER=rd"
      - "MARIADB_PASSWORD=rd"
      - "MARIADB_DATABASE=rd"
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "-u", "root", "-prd"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  rd_data:

Accessing the UI

Once you have run the docker-compose.yml file and the service is up (check its status using docker logs radiusdesk) you can log in with the default credentials at http://127.0.0.1:80/. The default username and password for RADIUSdesk are root and admin, respectively.

NOTE: The docker service name for the database and the username and passwords in the database config need to match those in the Radiusdesk config, which defaults to the passwords listed above. Changing these will not work in version 4.0.0.

Tag summary

Content type

Image

Digest

sha256:88aca7dd7

Size

488.3 MB

Last updated

6 months ago

Requires Docker Desktop 4.37.1 or later.