Files
radius/docker-compose.yml
T

38 lines
1.2 KiB
YAML
Raw Normal View History

version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: radius_postgres
restart: always
environment:
POSTGRES_DB: radius
POSTGRES_USER: radius
POSTGRES_PASSWORD: radpass
ports:
- "5432:5432"
volumes:
- /mnt/user/appdata/radiuscontroller/pgdata:/var/lib/postgresql/data
- /mnt/user/appdata/radiuscontroller/sql/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
radiuscontroller:
image: cablon.vanolst.tech/tygozwolle/radius:latest
container_name: radius_web_controller
restart: always
network_mode: "host"
depends_on:
- postgres
environment:
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_USER=radius
- DB_PASS=radpass
- DB_NAME=radius
- RADIUS_SECRET=radpass
- ConnectionStrings__DefaultConnection=Host=127.0.0.1;Port=5432;Database=radius;Username=radius;Password=radpass;
- ASPNETCORE_ENVIRONMENT=Production
# Change 8080 below to whatever port you want the web UI to run on (e.g., 8090)
- ASPNETCORE_URLS=http://+:8080
volumes:
- /mnt/user/appdata/radiuscontroller/certs:/etc/freeradius/3.0/certs