f5d2144f79
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m10s
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
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
|
|
depends_on:
|
|
- postgres
|
|
ports:
|
|
- "8080:8080"
|
|
- "1812:1812/udp"
|
|
- "1813:1813/udp"
|
|
environment:
|
|
- DB_HOST=postgres
|
|
- DB_PORT=5432
|
|
- DB_USER=radius
|
|
- DB_PASS=radpass
|
|
- DB_NAME=radius
|
|
- RADIUS_SECRET=radpass
|
|
- ConnectionStrings__DefaultConnection=Host=postgres;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
|