tpdock / freeradius

Freeradius server based on Ubuntu 16.04
18 stars 16 forks source link

Docker readme states two times RADIUS_DB_NAME #4

Open gintsgints opened 6 years ago

gintsgints commented 6 years ago

instead:

 -e RADIUS_DB_NAME=mysql \
  -e RADIUS_DB_NAME=freeradius \

probably is meant to be:

 -e RADIUS_DB_HOST=mysql \
  -e RADIUS_DB_NAME=freeradius \
gintsgints commented 6 years ago

Also would be nice to attach docker-compose example like:

radius:
  image: tpdock/freeradius
  restart: always
  links:
  - "mysql:db"
  ports:
  - "1812:1812/udp"
  - "1813:1813/udp"
  environment:
  - RADIUS_LISTEN_IP=*
  - RADIUS_CLIENTS=secret@127.0.0.1
  - RADIUS_SQL=true
  - RADIUS_DB_HOST=db
  - RADIUS_DB_NAME=radius
  - RADIUS_DB_USERNAME=radius
  - RADIUS_DB_PASSWORD=radius_234
  log_driver: "json-file"
  log_opt:
    max-size: "50m"
    max-file: "20"

mysql:
  image: mysql:5.7.22
  restart: always
  ports:
  - "3306:3306"
  environment:
  - MYSQL_ROOT_PASSWORD=root_234
  - MYSQL_DATABASE=radius
  - MYSQL_USER=radius
  - MYSQL_PASSWORD=radius_234
  log_driver: "json-file"
  log_opt:
    max-size: "50m"
    max-file: "20"