Run Redmine in the local environment of Windows10 Pro-Use Docker Desktop for Windows

I decided to use Redmine a little in the local environment, so I built the environment. I will write a memo at that time.

0. Preparation

◆ Enabling Hyper-V

In the "Windows Features" window that opens by clicking Control Panel → Programs and Features → Enable or Disable Windows Features, "Hyper-V" and "Windows Subsystem for Linux" as shown in the red frame in the following figure. Check the box, click [OK], and then restart the PC. <img src = "https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/402403/50e451fb-7573-5850-1c34-36ecbedad77f.png " alt =" Enable or disable "width =" 475 ">

◆ Enable virtualization

In Task Manager → Performance tab, make sure that "Virtualization" is enabled at the bottom right. If it is invalid, it needs to be enabled, but the method is omitted here.  taskmgr.png

1. Install Docker Desktop for Windows

Installing_DockerDesktop_Configuration.png

** * If "WSL 2 installation is in complete." Is displayed ... **

WSL2_installation_is_incomplete.png → Install "WSL2 Linux Kernel Update Package" from the following site.    https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-kernel

2. Download and start Redmine related files

docker-compose.yml


version: '3.7'

services:
    redmine:
        image: redmine
        container_name: redmine
        ports:
            - "127.0.0.1:8080:3000"
        volumes:
            - ./data/plugins:/usr/src/redmine/plugins
            - ./data/themes:/usr/src/redmine/public/themes
        environment:
            REDMINE_DB_MYSQL: redmine-db
            REDMINE_DB_PASSWORD: redmine
        restart: always

    redmine-db:
        image: mariadb
        container_name: redmine-db
        volumes:
            - ./data/db:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: redmine
            MYSQL_DATABASE: redmine
        restart: always
        command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci

3. Stop Docker

Docker_Stop.png

You can also stop by pressing Ctrl + C on the PowerShell terminal without opening the above window.

reference

☆ I used it as a reference. Thank you very much.  https://qiita.com/shione/items/0646a123fc9f5b5769b4  https://qiita.com/bezeklik/items/b5c39136a8db23e2e81c

Recommended Posts

Run Redmine in the local environment of Windows10 Pro-Use Docker Desktop for Windows
SSL in the local environment of Docker / Rails / puma
Self-hosting with Docker of AuteMuteUs in Windows environment
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
Install by specifying the version of Django in the Docker environment
Use MailHog for checking emails in the development environment (using Docker)
[Personal memo] About button (GUI) operation of Docker Desktop for Windows
[Introduction] Installation of Docker Desktop for Mac for the first time and setup of virtual environment construction of CentOS
[Introduction] Setting up GridDB Community Edition in the CentOS container of Docker Desktop for the first time
Introducing Docker Desktop for Windows on WSL2
Run static analysis Infer in Windows environment
For the time being, run the war file delivered in Java with Docker
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
[Rails] Run LINEBot in local environment using ngrok
Improve the performance of your Docker development environment
Procedure for introducing Docker into the development environment of existing Rails applications [Rails, MySQL, Docker]
[Personal memo] A small story about CPUs settings of Docker Desktop for Windows
Support out of support in docker environment using centos6
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Docker × Laravel HTTPS (SSL) communication in local environment
Operate Docker Desktop for Windows on Linux (WSL)
[Docker for Windows] The Docker app suddenly stopped working ...
For those who want to use MySQL for the database in the environment construction of Rails6 ~.
[For beginners] DI ~ The basics of DI and DI in Spring ~
Docker the development environment of Ruby on Rails project
[Java] Get the file in the jar regardless of the environment
I tried using Docker Desktop for Windows on Windows 10 Home
A command that definitely cleans the local docker environment
Connect your GPU environment as a local runtime of Google Colaboratory with Windows 10 Docker Desktop (based WSL2) [Use Preview release]
I tried using Docker because I don't want to pollute the local environment in Microsoft Teams tab development of MS Learn
I tried to develop the cache function of Application Container Cloud Service in the local environment
Install / run a standalone robot simulator in wsl2 / docker environment!
I tried to build the environment of WSL2 + Docker + VSCode
Configuration script for using docker in proxy environment on ubuntu 20.04.1
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home
Docker monitoring-explaining the basics of basics-
Decomposing the Docker run command. .. ..
Redmine (Docker) environment construction memo
Try Oracle Enterprise Manager Cloud Control with Docker Desktop for Windows
Examine the system information of AWS Lambda operating environment in Java
Summary of steps for developing in Docker container with VS Code
I tried to build the environment of PlantUML Server with Docker
Build a browser test environment using Capybara in the Docker development environment
Install lsb_release from the command line when lsb_release fails in docker environment
WSL2 + Docker Desktop for Windows does not launch only MySQL container
ngrok --https communication in local environment (exposing the server to the outside)
[Rails & Docker & MySQL environment construction] Could not find gem ‘mysql2 (> = 0.4.4, <0.6.0)’ in any of the gem sources listed in your Gemfile.