jean-cloud-services/services/wiki-cgr.jean-cloud.net/docker-compose.yml

56 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-01-02 16:50:14 +00:00
# Check that before updating
# https://www.mediawiki.net/wiki/Extension:VisualEditor#Setting_up_VisualEditor
version: '3'
services:
mediawiki:
image: mediawiki:1.35
restart: unless-stopped
volumes:
- $DATA_DIR/images:/var/www/html/images
- $DATA_DIR/extensions-1.32:/var/www/html/extensions
- $DATA_DIR/LocalSettings.php:/var/www/html/LocalSettings.php
- $DATA_DIR/mylogo.png:/var/www/html/resources/assets/mylogo.png
networks:
default:
ipv4_address: $NET.100
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
parsoid:
image: thenets/parsoid:0.9
restart: unless-stopped
environment:
- PARSOID_DOMAIN_wiki_cgr=http://wiki-cgr.jean-cloud.net/api.php
networks:
default:
ipv4_address: $NET.101
deploy:
resources:
limits:
cpus: '0.50'
memory: 100M
db:
image: mariadb:10.4
volumes:
- $DATA_DIR/db:/var/lib/mysql
networks:
default:
ipv4_address: $NET.102
deploy:
resources:
limits:
cpus: '0.50'
memory: 300M
networks:
default:
ipam:
config:
- subnet: $NET.0/24