DAS_2023_1/tepechin_kirill_lab_1/docker-compose.yml

53 lines
1.0 KiB
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: