You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
services:
|
|
|
|
radius-mysql:
|
|
image: mariadb:10
|
|
container_name: radius-mysql
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_DATABASE=radius
|
|
- MYSQL_USER=radius
|
|
- MYSQL_PASSWORD=radiusdbpw
|
|
- MYSQL_ROOT_PASSWORD=radiusrootdbpw
|
|
volumes:
|
|
- "./data/mysql:/var/lib/mysql"
|
|
|
|
radius:
|
|
container_name: radius
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-freeradius
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- radius-mysql
|
|
ports:
|
|
- '1812:1812/udp'
|
|
- '1813:1813/udp'
|
|
environment:
|
|
- MYSQL_HOST=radius-mysql
|
|
- MYSQL_PORT=3306
|
|
- MYSQL_DATABASE=radius
|
|
- MYSQL_USER=radius
|
|
- MYSQL_PASSWORD=radiusdbpw
|
|
# Optional settings
|
|
- DEFAULT_CLIENT_SECRET=testing123
|
|
volumes:
|
|
- ./data/freeradius:/data
|
|
# If you want to disable debug output, remove the command parameter
|
|
command: -X
|
|
|
|
radius-web:
|
|
build: .
|
|
container_name: radius-web
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- radius
|
|
- radius-mysql
|
|
ports:
|
|
- '80:80'
|
|
- '8000:8000'
|
|
environment:
|
|
- MYSQL_HOST=radius-mysql
|
|
- MYSQL_PORT=3306
|
|
- MYSQL_DATABASE=radius
|
|
- MYSQL_USER=radius
|
|
- MYSQL_PASSWORD=radiusdbpw
|
|
# Optional Settings:
|
|
- DEFAULT_CLIENT_SECRET=testing123
|
|
- DEFAULT_FREERADIUS_SERVER=radius
|
|
- MAIL_SMTPADDR=pro.turbo-smtp.com
|
|
- MAIL_PORT=25
|
|
- MAIL_FROM=sales@wifibills.com
|
|
- MAIL_AUTH=2a40nGdj
|
|
|
|
volumes:
|
|
- ./data/daloradius:/data
|