This server it is working wich wikimedia 1.30
Paths & files
git/ docker-compose-yml
wiki/ parsoid/ bases/
mysql/
Inside the git paths, run the command: docker-compose up
** Parsoid **
your wiki LocalSettings.php (from line 145):
wfLoadExtension( 'VisualEditor' );
# End of automatically generated settings.
# Add more configuration options below.
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://git_parsoid_1:8000',
// Parsoid "domain", see below (optional)
'domain' => 'git_web_1',
// Parsoid "prefix", see below (optional)
'prefix' => 'git_web_1'
);
** parsoid config.yml ** (from line 19)
services:
- module: lib/index.js
entrypoint: apiServiceWorker
conf:
# For backwards compatibility, and to continue to support non-static
# configs for the time being, optionally provide a path to a
# localsettings.js file. See localsettings.example.js
#localsettings: ./localsettings.js
# Set your own user-agent string
# Otherwise, defaults to:
# 'Parsoid/<current-version-defined-in-package.json>'
#userAgent: 'My-User-Agent-String'
# Configure Parsoid to point to your MediaWiki instances.
mwApis:
- # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://git_web_1/api.php'
# The "domain" is used for communication with Visual Editor
# and RESTBase. It defaults to the hostname portion of
# the `uri` property above, but you can manually set it
# to an arbitrary string. It must match the "domain" set
# in $wgVirtualRestConfig.
# domain: 'localhost' # optional
# To specify a proxy (or proxy headers) specific to this prefix
# (which overrides defaultAPIProxyURI). Alternatively, set `proxy`
# to `null` to override and force no proxying when a default proxy
# has been set.
#proxy:
# uri: 'http://my.proxy:1234/'
# headers: # optional
# 'X-Forwarded-Proto': 'https'
[...]
**docker compose **
version: '3'
services:
db:
image: getjv/mysql
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=mysql
volumes:
- C:\git\bases\mysql:/var/lib/mysql
web:
image: getjv/ubuntu
ports:
- "80:80"
volumes:
- C:\git:/var/www/html
links:
- db
- parsoid
parsoid:
image: getjv/parsoid
ports:
- "8000:8000"
volumes:
- C:\git\parsoid:/data
Content type
Image
Digest
Size
277.1 MB
Last updated
over 8 years ago
docker pull getjv/parsoid