diff --git a/sergeev_evgenii_lab_1/docker-compose.yml b/sergeev_evgenii_lab_1/docker-compose.yml index e69de29..974fa27 100644 --- a/sergeev_evgenii_lab_1/docker-compose.yml +++ b/sergeev_evgenii_lab_1/docker-compose.yml @@ -0,0 +1,42 @@ +version: '3' + +services: + mediawiki: + image: mediawiki + ports: + - "8081:80" + links: + - database + volumes: + - mediawiki-data:/var/www/html + + database: + image: mariadb + restart: always + environment: + MYSQL_DATABASE: my_wiki + MYSQL_USER: wikiuser + MYSQL_PASSWORD: example + MYSQL_RANDOM_ROOT_PASSWORD: 'yes' + volumes: + - db:/var/lib/mysql + + drupal: + image: drupal:10-apache + ports: + - "8082:80" + volumes: + - drupal-data:/var/www/html + + wordpress: + image: wordpress:latest + ports: + - "8083:80" + volumes: + - wordpress-data:/var/www/html + +volumes: + mediawiki-data: + drupal-data: + wordpress-data: + db: