I decided to use Redmine a little in the local environment, so I built the environment. I will write a memo at that time.
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 ">
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.
→ Install "WSL2 Linux Kernel Update Package" from the following site. https://docs.microsoft.com/ja-jp/windows/wsl/wsl2-kernel
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
Start PowerShell and enter ** cd C: \ Docker \ Redmine ** to move to the above folder.
Press docker-compose up and press Enter. (It takes time because various files are downloaded at the first time.)
When you access http: // localhost: 8080 with a browser, the home screen of Redmine is displayed. You can log in with user: admin and password: admin.
You can also stop by pressing Ctrl + C on the PowerShell terminal without opening the above window.
☆ I used it as a reference. Thank you very much. https://qiita.com/shione/items/0646a123fc9f5b5769b4 https://qiita.com/bezeklik/items/b5c39136a8db23e2e81c