diff --git a/tepechin_kirill_lab_1/README.md b/tepechin_kirill_lab_1/README.md new file mode 100644 index 0000000..dd2ce2f --- /dev/null +++ b/tepechin_kirill_lab_1/README.md @@ -0,0 +1,67 @@ +## Лабораторная работа №1, ПИбд-42 Тепечин Кирилл + +### Выбранные сервисы +* *mediawiki* Движок вики. +* *redmine* Система учёта багов, т.е. баг-трекер. +* *wordpress* Популярная система управления контентом. +### docker-compose файл +````yaml +version: '3' + +services: + mediawiki: + image: mediawiki + volumes: + - mediawiki-data:/var/www/html + ports: + - "8080:80" + environment: + - MYSQL_HOST=db + - MYSQL_USER=user + - MYSQL_PASSWORD=password + - MYSQL_DATABASE=db + + redmine: + image: redmine + volumes: + - redmine-data:/usr/src/redmine/files + ports: + - "3000:3000" + environment: + - REDMINE_DB_MYSQL=db + - REDMINE_DB_DATABASE=db + - REDMINE_DB_USERNAME=user + - REDMINE_DB_PASSWORD=password + + wordpress: + image: wordpress + volumes: + - wordpress-data:/var/www/html + ports: + - "8081:80" + environment: + - WORDPRESS_DB_HOST=db + - WORDPRESS_DB_USER=user + - WORDPRESS_DB_PASSWORD=password + - WORDPRESS_DB_NAME=db + db: + image: mysql:5.7 + volumes: + - db-data:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=password + - MYSQL_DATABASE=db + - MYSQL_USER=user + - MYSQL_PASSWORD=password + +volumes: + mediawiki-data: + redmine-data: + wordpress-data: + db-data: +```` +### Результат выполнения команды docker-compose up +![Результат](up.png) + +### Ссылка на видео +https://vk.com/video170089763_456239478?list=ln-8Kq0kTw1zDK7KMdrAz diff --git a/tepechin_kirill_lab_1/docker-compose.yml b/tepechin_kirill_lab_1/docker-compose.yml new file mode 100644 index 0000000..0bc9bdb --- /dev/null +++ b/tepechin_kirill_lab_1/docker-compose.yml @@ -0,0 +1,53 @@ +version: '3' + +services: + mediawiki: + image: mediawiki + volumes: + - mediawiki-data:/var/www/html + ports: + - "8080:80" + environment: + - MYSQL_HOST=db + - MYSQL_USER=user + - MYSQL_PASSWORD=password + - MYSQL_DATABASE=db + + redmine: + image: redmine + volumes: + - redmine-data:/usr/src/redmine/files + ports: + - "3000:3000" + environment: + - REDMINE_DB_MYSQL=db + - REDMINE_DB_DATABASE=db + - REDMINE_DB_USERNAME=user + - REDMINE_DB_PASSWORD=password + + wordpress: + image: wordpress + volumes: + - wordpress-data:/var/www/html + ports: + - "8081:80" + environment: + - WORDPRESS_DB_HOST=db + - WORDPRESS_DB_USER=user + - WORDPRESS_DB_PASSWORD=password + - WORDPRESS_DB_NAME=db + db: + image: mysql:5.7 + volumes: + - db-data:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=password + - MYSQL_DATABASE=db + - MYSQL_USER=user + - MYSQL_PASSWORD=password + +volumes: + mediawiki-data: + redmine-data: + wordpress-data: + db-data: \ No newline at end of file diff --git a/tepechin_kirill_lab_1/up.png b/tepechin_kirill_lab_1/up.png new file mode 100644 index 0000000..5bdbd00 Binary files /dev/null and b/tepechin_kirill_lab_1/up.png differ