DAS_2024_1/kosheev_maksim_lab_1/docker-compose.yml

88 lines
2.0 KiB
YAML
Raw Normal View History

version: '3.8'
2024-11-10 18:23:44 +04:00
services:
mediawiki:
image: mediawiki:latest
container_name: mediawiki
environment:
MEDIAWIKI_DB_HOST: db-mediawiki
MEDIAWIKI_DB_NAME: mediawiki
MEDIAWIKI_DB_USER: wikiuser
MEDIAWIKI_DB_PASSWORD: password
ports:
- "8081:80"
depends_on:
- db-mediawiki
volumes:
- mediawiki_data:/var/www/html/images
db-mediawiki:
image: mysql:5.7
container_name: db-mediawiki
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: mediawiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: password
volumes:
- db_mediawiki_data:/var/lib/mysql
2024-11-10 18:23:44 +04:00
wordpress:
image: wordpress:latest
container_name: wordpress
environment:
WORDPRESS_DB_HOST: db-wordpress
WORDPRESS_DB_USER: wpuser
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
ports:
- "8082:80"
depends_on:
- db-wordpress
2024-11-10 18:23:44 +04:00
volumes:
- wordpress_data:/var/www/html
db-wordpress:
2024-11-10 18:23:44 +04:00
image: mysql:5.7
container_name: db-wordpress
2024-11-10 18:23:44 +04:00
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wpuser
MYSQL_PASSWORD: password
2024-11-10 18:23:44 +04:00
volumes:
- db_wordpress_data:/var/lib/mysql
2024-11-10 18:23:44 +04:00
redmine:
image: redmine:latest
container_name: redmine
environment:
REDMINE_DB_MYSQL: db-redmine
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: password
REDMINE_DB_DATABASE: redmine
ports:
- "8083:3000"
2024-11-10 18:23:44 +04:00
depends_on:
- db-redmine
volumes:
- redmine_data:/usr/src/redmine/files
2024-11-10 18:23:44 +04:00
db-redmine:
2024-11-10 18:23:44 +04:00
image: mysql:5.7
container_name: db-redmine
2024-11-10 18:23:44 +04:00
environment:
MYSQL_ROOT_PASSWORD: rootpassword
2024-11-10 18:23:44 +04:00
MYSQL_DATABASE: redmine
MYSQL_USER: redmine
MYSQL_PASSWORD: password
2024-11-10 18:23:44 +04:00
volumes:
- db_redmine_data:/var/lib/mysql
2024-11-10 18:23:44 +04:00
volumes:
mediawiki_data:
db_mediawiki_data:
2024-11-10 18:23:44 +04:00
wordpress_data:
db_wordpress_data:
redmine_data:
db_redmine_data: