DAS_2023_1/basharin_sevastyan_lab_1
2023-11-21 16:03:09 +04:00
..
cmd.png basharin_sevastyan_lab_1 is ready! 2023-11-21 16:03:09 +04:00
docker-compose.yaml basharin_sevastyan_lab_1 is ready! 2023-11-21 16:03:09 +04:00
hub.png basharin_sevastyan_lab_1 is ready! 2023-11-21 16:03:09 +04:00
README.md basharin_sevastyan_lab_1 is ready! 2023-11-21 16:03:09 +04:00

Лабораторная работа 1. Вариант 5.

Разворачиваемые сервисы

  • postgres
  • mediawiki
  • redmine
  • wordpress

Запуск

docker-compose up -d

Описание работы

Конфигурация postgres:

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:

gitea:
    image: gitea/gitea
    ports:
        - "8081:3000"
    volumes:
        - ./storage/gitea-data:/var/www/gitea

Конфигурация redmine:

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:

wordpress:
    image: wordpress
    container_name: my-wordpress-container
    ports:
        - 8083:80
    volumes:
        - ./storage/wordpress-data:/var/www/html/wp-content

Запуск сервисов

Результат выполнение команды docker-compose и log-журнал контейнеров:

Видео:

``