1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker-composeでコンテナ作成(redmine)

Last updated at Posted at 2024-01-06

6年前にCentOS7.6で構築した検証環境をubuntu22.04.3TLSへ移行するのでメモ

環境

仮想化:VMware Workstation-playre17またはVMware workstation-pro17
ホスト:Windows10またはWindows11pro(どちらも確認済み)
ゲスト:ubuntu22.04.3TLS
↓環境構築時メモ
VMでWindowsホストにUbuntuをゲスト起動する
dockerコンテナ環境作成

docker-composeでRedmineコンテナ作成

Redmine用のディレクトリ作成
$ mkdir docker-redmine
作成したディレクトリへ移動
$ cd docker-redmine
$ vi docker-compose.yml(ファイル作成:8081は他のコンテナと重複しないportを適宜指定)
services:
  redmine:
    image: redmine:5.0.4-bullseye
    ports:
      - 8081:3000
    environment:
      REDMINE_DB_POSTGRES: redmine-db
      REDMINE_DB_DATABASE: redmine
      REDMINE_DB_USERNAME: redmine_user
      REDMINE_DB_PASSWORD: redmine_password
      REDMINE_SECRET_KEY_BASE: supersecretkey
      REDMINE_DB_PORT: 5432
    volumes:
      - vol_redmine:/usr/src/redmine/files

  redmine-db:
    image: postgres:15.1-bullseye
    ports:
      - 5432:5432
    environment:
      POSTGRES_DB: redmine
      POSTGRES_USER: redmine_user
      POSTGRES_PASSWORD: redmine_password
    volumes:
      - vol_redmine_db:/var/lib/postgresql/data

volumes:
  vol_redmine:
  vol_redmine_db:
  
Docker Composeを使ってRedmineをバックグラウンドで起動
$ sudo docker-compose up -d
すべてのDockerコンテナの状態を表示
$ sudo docker ps -a

Remine WEBUIへアクセス

http://ホストのアドレス:設定したport番号
初期ログインID/PWはadmin/admin
image.png

dockerコンテナの状態確認とログ確認
$ sudo docker ps -a
$ sudo docker logs <container ID>

参考にしたページ

当方の環境での設定log

redmine_ubuntu_install_log 正常ログ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?