Fix Docker deployment: restore HTTPS, auto-run plugin migrations, install core plugins only
- Restore original HTTPS config in docker-compose files (gunicorn + gevent DOES support SSL) - Add plugin migration step to docker-entrypoint.sh (fixes missing plugin tables on first deploy) - Install only core plugins on bootstrap (backups, computers, endpoints, guides, knowledgebase, machines, network, notifications, printers, slides, tools, warranty) - Set FLASK_ENV=production to disable Werkzeug debugger Bug: bootstrap-plugins.sh installed ALL plugins but didn't run migrations, causing 'Table does not exist' errors. Now installs core plugins only and runs 'flask plugin upgrade-all' after bootstrap. Optional plugins (employees, geenforce, measuringtools, printedparts, usb) can be installed later via Settings > Plugins. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,18 +47,29 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
command: >
|
||||
gunicorn
|
||||
--bind 0.0.0.0:5001
|
||||
--workers 4
|
||||
--worker-class gevent
|
||||
--worker-connections 2000
|
||||
--timeout 300
|
||||
--certfile /app/certs/server.crt
|
||||
--keyfile /app/certs/server.key
|
||||
--access-logfile -
|
||||
--error-logfile -
|
||||
wsgi:app
|
||||
command:
|
||||
- gunicorn
|
||||
- --bind
|
||||
- 0.0.0.0:5001
|
||||
- --worker-class
|
||||
- gevent
|
||||
- --workers
|
||||
- "4"
|
||||
- --worker-connections
|
||||
- "2000"
|
||||
- --timeout
|
||||
- "60"
|
||||
- --access-logfile
|
||||
- "-"
|
||||
- --access-logformat
|
||||
- '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s %(D)sus "%(f)s" "%(a)s"'
|
||||
- --error-logfile
|
||||
- "-"
|
||||
- --certfile
|
||||
- /app/certs/server.crt
|
||||
- --keyfile
|
||||
- /app/certs/server.key
|
||||
- wsgi:app
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
Reference in New Issue
Block a user