45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
|
services:
|
||
|
db:
|
||
|
image: postgres:latest # исходный образ
|
||
|
container_name: db # имя контейнера
|
||
|
environment: # переменные среды для настройки образа
|
||
|
POSTGRES_USER: postgres
|
||
|
POSTGRES_PASSWORD: postgres
|
||
|
POSTGRES_DB: postgres
|
||
|
volumes: # Место для хранения данных контейнера
|
||
|
- db_volume:/var/lib/postgresql
|
||
|
|
||
|
redmine:
|
||
|
image: redmine
|
||
|
container_name: redmine
|
||
|
ports:
|
||
|
- "8081:3000"
|
||
|
volumes:
|
||
|
- redmine_volume:/usr/src/redmine/files
|
||
|
environment:
|
||
|
- REDMINE_DB_POSTGRESQL=db
|
||
|
- REDMINE_DB_DATABASE=redmine
|
||
|
- REDMINE_DB_USERNAME=root
|
||
|
- REDMINE_DB_PASSWORD=root
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
mediawiki:
|
||
|
image: mediawiki
|
||
|
container_name: mediawiki
|
||
|
ports:
|
||
|
- "8080:80"
|
||
|
volumes:
|
||
|
- mediawiki_volume:/var/www/html/images
|
||
|
environment:
|
||
|
- MEDIAWIKI_DB_HOST=db
|
||
|
- MEDIAWIKI_DB_NAME=wiki
|
||
|
- MEDIAWIKI_DB_USER=root
|
||
|
- MEDIAWIKI_DB_PASSWORD=root
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
volumes:
|
||
|
mediawiki_volume:
|
||
|
redmine_volume:
|
||
|
db_volume:
|