This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>QWebChannel Client</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.css" /> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
| <script type="text/javascript" src="qwebchannel.js"></script> |
| import sys | |
| from PyQt5.QtCore import QUrl, QSize | |
| from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile | |
| from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QLabel, QMainWindow, QTabWidget, QApplication | |
| from PyQt5.QtNetwork import QNetworkCookie | |
| import http.cookiejar | |
| def create_script(name, src, injection_point = QWebEngineScript.DocumentCreation, world = QWebEngineScript.MainWorld, on_subframes = True): | |
| script = QWebEngineScript() | |
| script.setSourceCode(src) |
| <html> | |
| <head> | |
| <script src="qrc:///qtwebchannel/qwebchannel.js"></script> | |
| <style> | |
| ::selection { | |
| background:transparent; | |
| } | |
| </style> | |
| </head> |