Files
radiusNucleo/docker-compose.yml
josedario87 5b57ed92ae
All checks were successful
build-and-deploy / build (push) Successful in 8s
build-and-deploy / deploy (push) Successful in 16s
fix
2025-09-26 20:21:23 -06:00

62 lines
1.4 KiB
YAML

version: "3.9"
services:
node:
build: ./node-api
image: gitea.nucleoriofrio.com/nucleo000/radiusnucleo:latest
environment:
- VLAN_ID=2
- MAX_UP=10000000
- MAX_DOWN=10000000
- RADIUS_HOST=freeradius
- RADIUS_AUTH_PORT=1812
- RADIUS_SECRET=${RADIUS_SHARED_SECRET:-tamosbien}
- PGHOST=postgres
- PGPORT=5432
- PGDATABASE=radius
- PGUSER=radius
- PGPASSWORD=radius
networks:
- radius_net
- principal
freeradius:
build: ./freeradius
image: gitea.nucleoriofrio.com/nucleo000/radiusnucleo-freeradius:latest
depends_on:
- node
- postgres
restart: unless-stopped
ports:
- "1812:1812/udp"
- "1813:1813/udp"
- "3799:3799/udp"
environment:
- RADIUS_CLIENTS_CIDR=${RADIUS_CLIENTS_CIDR:-192.168.87.0/24}
- RADIUS_SHARED_SECRET=${RADIUS_SHARED_SECRET:-tamosbien}
networks:
- radius_net
- principal
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_DB=radius
- POSTGRES_USER=radius
- POSTGRES_PASSWORD=radius
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/init:/docker-entrypoint-initdb.d:ro
networks:
- radius_net
- principal
networks:
radius_net:
driver: bridge
principal:
external: true
volumes:
postgres_data: