Merge pull request 'basharin_sevastyan_lab_1' (#21) from basharin_sevastyan_lab_1 into main
Reviewed-on: http://student.git.athene.tech/Alexey/DAS_2023_1/pulls/21
This commit is contained in:
commit
9268c9b075
85
basharin_sevastyan_lab_1/README.md
Normal file
85
basharin_sevastyan_lab_1/README.md
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
## Лабораторная работа 1. Вариант 5.
|
||||||
|
|
||||||
|
### Разворачиваемые сервисы
|
||||||
|
- `postgres`
|
||||||
|
- `mediawiki`
|
||||||
|
- `redmine`
|
||||||
|
- `wordpress`
|
||||||
|
|
||||||
|
### Запуск
|
||||||
|
```PS
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
### Описание работы
|
||||||
|
|
||||||
|
#### Конфигурация `postgres`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
postgres:
|
||||||
|
postgres:
|
||||||
|
image: postgres:10
|
||||||
|
volumes:
|
||||||
|
- ./storage/postgresql-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: "postgres"
|
||||||
|
POSTGRES_USER: "postgres"
|
||||||
|
POSTGRES_PASSWORD: "my_password"
|
||||||
|
PGDATA: "/var/lib/postgresql/data"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- wikidb
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Конфигурация `gitea`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea
|
||||||
|
ports:
|
||||||
|
- "8081:3000"
|
||||||
|
volumes:
|
||||||
|
- ./storage/gitea-data:/var/www/gitea
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Конфигурация `redmine`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
redmine:
|
||||||
|
image: redmine
|
||||||
|
ports:
|
||||||
|
- 8082:3000
|
||||||
|
volumes:
|
||||||
|
- ./storage/redmine-plugins:/usr/src/redmine/plugins
|
||||||
|
- ./storage/redmine-themes:/usr/src/redmine/public/themes
|
||||||
|
- ./storage/redmine-data:/usr/src/redmine/files
|
||||||
|
environment:
|
||||||
|
REDMINE_DB_POSTGRES: "postgres"
|
||||||
|
REDMINE_DB_USERNAME: "postgres"
|
||||||
|
REDMINE_DB_DATABASE: "my_db"
|
||||||
|
REDMINE_DB_PASSWORD: "my_password"
|
||||||
|
REDMINE_SECRET_KEY_BASE: "secret_key"
|
||||||
|
networks:
|
||||||
|
- wikidb
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Конфигурация `wordpress`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
wordpress:
|
||||||
|
image: wordpress
|
||||||
|
container_name: my-wordpress-container
|
||||||
|
ports:
|
||||||
|
- 8083:80
|
||||||
|
volumes:
|
||||||
|
- ./storage/wordpress-data:/var/www/html/wp-content
|
||||||
|
```
|
||||||
|
|
||||||
|
### Запуск сервисов
|
||||||
|
Результат выполнение команды docker-compose и log-журнал контейнеров:
|
||||||
|
![](cmd.png)
|
||||||
|
![](hub.png)
|
||||||
|
|
||||||
|
### Видео:
|
||||||
|
https://youtu.be/ocGwifuuWo4
|
BIN
basharin_sevastyan_lab_1/cmd.png
Normal file
BIN
basharin_sevastyan_lab_1/cmd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
50
basharin_sevastyan_lab_1/docker-compose.yaml
Normal file
50
basharin_sevastyan_lab_1/docker-compose.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:10
|
||||||
|
volumes:
|
||||||
|
- ./storage/postgresql-data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: "postgres"
|
||||||
|
POSTGRES_USER: "postgres"
|
||||||
|
POSTGRES_PASSWORD: "my_password"
|
||||||
|
PGDATA: "/var/lib/postgresql/data"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- wikidb
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea
|
||||||
|
ports:
|
||||||
|
- "8081:3000"
|
||||||
|
volumes:
|
||||||
|
- ./storage/gitea-data:/var/www/gitea
|
||||||
|
|
||||||
|
redmine:
|
||||||
|
image: redmine
|
||||||
|
ports:
|
||||||
|
- 8082:3000
|
||||||
|
volumes:
|
||||||
|
- ./storage/redmine-plugins:/usr/src/redmine/plugins
|
||||||
|
- ./storage/redmine-themes:/usr/src/redmine/public/themes
|
||||||
|
- ./storage/redmine-data:/usr/src/redmine/files
|
||||||
|
environment:
|
||||||
|
REDMINE_DB_POSTGRES: "postgres"
|
||||||
|
REDMINE_DB_USERNAME: "postgres"
|
||||||
|
REDMINE_DB_DATABASE: "my_db"
|
||||||
|
REDMINE_DB_PASSWORD: "my_password"
|
||||||
|
REDMINE_SECRET_KEY_BASE: "secret_key"
|
||||||
|
networks:
|
||||||
|
- wikidb
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
wordpress:
|
||||||
|
image: wordpress
|
||||||
|
container_name: my-wordpress-container
|
||||||
|
ports:
|
||||||
|
- 8083:80
|
||||||
|
volumes:
|
||||||
|
- ./storage/wordpress-data:/var/www/html/wp-content
|
||||||
|
|
||||||
|
networks:
|
||||||
|
wikidb:
|
BIN
basharin_sevastyan_lab_1/hub.png
Normal file
BIN
basharin_sevastyan_lab_1/hub.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
Loading…
Reference in New Issue
Block a user