Auto-configure server on first Docker run

This commit is contained in:
Fimeg
2025-10-29 13:01:28 -04:00
parent 237e04531f
commit 1acddb58a5
2 changed files with 5 additions and 12 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
postgres:
image: postgres:16-alpine
@@ -41,6 +39,7 @@ services:
- REDFLAG_DB_PASSWORD=redflag
- REDFLAG_SERVER_HOST=0.0.0.0
- REDFLAG_SERVER_PORT=8080
command: ["sh", "-c", "if [ ! -f /app/.env ]; then ./redflag-server --setup; fi && ./redflag-server --migrate && ./redflag-server"]
restart: unless-stopped
volumes: