Files
RadMac/docker-compose.yml
2025-04-07 15:39:03 -04:00

54 lines
1.0 KiB
YAML

---
services:
db:
image: simonclr/radmac-db:latest
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
radius:
image: simonclr/radmac-radius:latest
depends_on:
- db
env_file:
- .env
ports:
- "1812:1812/udp"
restart: unless-stopped
app:
image: simonclr/radmac-app:latest
volumes:
- ./app:/app # Optional: remove if not needed for production
env_file:
- .env
environment:
- FLASK_APP=wsgi:app
- FLASK_ENV=production
- PYTHONPATH=/app
restart: unless-stopped
depends_on:
- db
nginx:
image: simonclr/radmac-nginx:latest
ports:
- "8080:80"
depends_on:
- app
restart: unless-stopped
adminer:
image: adminer
restart: unless-stopped
ports:
- "8081:8080"
volumes:
db_data: