DAS_2023_1/mashkova_margarita_lab_1/docker-compose.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

2023-12-12 05:28:44 +04:00
version: '3'
services:
mediawiki:
image: mediawiki
container_name: mediawiki
ports:
- "8081:80"
volumes:
- mediawiki-data:/var/www/html/images
environment:
- MEDIAWIKI_DB_HOST=db
- MEDIAWIKI_DB_USER=wikiuser
- MEDIAWIKI_DB_PASSWORD=wikipassword
- MEDIAWIKI_DB_NAME=wikidb
wordpress:
depends_on:
- mysql
image: wordpress
container_name: wordpress
volumes:
- wordpress-data:/var/www/html
ports:
- "8082:80"
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_NAME=wiki_db
- WORDPRESS_DB_USER=wiki_user
- WORDPRESS_DB_PASSWORD=password
mysql:
image: mysql:latest
container_name: mysql
volumes:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_DATABASE=wiki_db
- MYSQL_USER=wiki_user
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
drupal:
image: drupal:latest
container_name: drupal
ports:
- "8083:80"
volumes:
- drupal_modules:/var/www/html/modules
- drupal_profiles:/var/www/html/profiles
- drupal_themes:/var/www/html/themes
- drupal_sites:/var/www/html/sites
volumes:
mediawiki-data:
wordpress-data:
drupal_modules:
drupal_profiles:
drupal_themes:
drupal_sites:
mysql-data: