DAS_2024_1/turner_ilya_lab_1/docker-compose.yml

45 lines
984 B
YAML
Raw Permalink Normal View History

2024-10-26 17:34:47 +04:00
services:
mediawiki:
image: mediawiki
container_name: mediawiki
ports:
- "8080:80"
volumes:
- mediawiki_data:/var/www/html/images
environment:
- MEDIAWIKI_DB_HOST=database
- MEDIAWIKI_DB_NAME=mediawiki
- MEDIAWIKI_DB_USER=root
- MEDIAWIKI_DB_PASSWORD=example
depends_on:
- database
redmine:
image: redmine
container_name: redmine
ports:
- "8081:3000"
volumes:
- redmine_data:/usr/src/redmine/files
environment:
- REDMINE_DB_POSTGRESQL=database
- REDMINE_DB_DATABASE=redmine
- REDMINE_DB_USERNAME=root
- REDMINE_DB_PASSWORD=example
depends_on:
- database
database:
image: postgres:latest
container_name: database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: postgres
volumes:
- database_data:/var/lib/postgresql
volumes:
mediawiki_data:
redmine_data:
database_data: