docker-composeを入れてredmineをお試しに導入してみる。
1) redminのマニフェストを作成する。
vi compose_redmain.yaml
============================================
version: '3.5'
services:
redmine:
image: arm32v7/redmine
restart: always
ports:
- 8080:3000
environment:
REDMINE_DB_POSTGRES: db
REDMINE_DB_DATABASE: redmine
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: exsample
REDMINE_DB_ENCODING: utf8
depends_on:
- db
volumes:
- /var/www/redmine/files:/usr/src/redmine/files
- /var/www/redmine/log:/usr/src/redmine/log
- /var/www/redmine/plugins:/usr/src/redmine/plugins
- /var/www/redmine/public/themes:/usr/src/redmine/public/themes
db:
image: postgres
restart: always
environment:
POSTGRES_DB: redmine
POSTGRES_USER: redmine
POSTGRES_PASSWORD: **********
===============================================2)コンテナの生成を行ってみる。
docker-compose -f compose_redmain.yaml up -d
==========================================================
Creating network "k8s_default" with the default driver
Pulling db (postgres:)...
latest: Pulling from library/postgres
5155b41fe73a: Already exists
6aedcf4ebf8d: Pull complete
.
.
.
Creating k8s_db_1 ... done
Creating k8s_redmine_1 ... done
============================================================
3)無事、生成出来たようだ。
root@rasp-master:/home/pi/k8s# docker ps
======================================================================================
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
814544b3d3ea arm32v7/redmine "/docker-entrypoint.…" 52 seconds ago Up 6 seconds 0.0.0.0:8080->3000/tcp k8s_redmine_1
======================================================================================
0 件のコメント:
コメントを投稿