56 lines
1.1 KiB
YAML
56 lines
1.1 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:
|
|
condition: service_healthy
|
|
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:
|
|
condition: service_healthy
|
|
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: |