more fixed to docker-compose and init-schema.sql
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- init-schema.sql
|
||||
|
||||
USE radius;
|
||||
-- Table for registered users (MAC-based auth)
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
mac_address CHAR(12) NOT NULL PRIMARY KEY CHECK (mac_address REGEXP '^[0-9A-Fa-f]{12}$'),
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
services:
|
||||
db:
|
||||
image: simonclr/radmac-db:latest
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3306:3306"
|
||||
|
||||
Reference in New Issue
Block a user