이런저런 IT 이야기
article thumbnail
Published 2023. 7. 29. 10:51
Redmine + Docker Docker
반응형

Redmine서버를 구축시  DB를 선택해야 한다. Mysql or Postgres중에서 원하는 DB를 설치하고 싶을때 설치 명령어를 다르게 구분하였다.

*Redmine + Mysql 용 빌드 

$ docker-compose -f docker-compose-mysql.yml up -d --build

version: '3.7'
services:
  mysql:
    container_name: mysql
    tty: true
    image: mysql:5.6
    environment:
      MYSQL_DATABASE: redmine
      MYSQL_ROOT_PASSWORD: aqwsde123!
    ports:
      - "3306:3306"
    command:
      - --character-set-server=utf8
      - --collation-server=utf8_unicode_ci
    restart: unless-stopped
  redmine:
      container_name: redmine
      environment:
        REDMINE_DB_MYSQL: mysql
        REDMINE_DB_PASSWORD: aqwsde123!
      build:
        context: .
        dockerfile: Dockerfile
      tty: true
      ports:
        - "6847:3000"
      depends_on:
        - mysql
      restart: unless-stopped

 

* Redmine + Postgres 용 빌드 

$ docker-compose -f docker-compose-postgres.yml up -d --build

version: '3.7'
services:
  redminepostgres:
    container_name: redminepostgres
    tty: true
    image: postgres
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: aqwsde123!
      PGDATA: /data/postgres
    ports:
      - "5432:5432"
    restart: unless-stopped
  redmine:
      container_name: redmine
      environment:
        REDMINE_DB_POSTGRES: redminepostgres
        REDMINE_DB_PASSWORD: aqwsde123!
      build:
        context: .
        dockerfile: Dockerfile
      tty: true
      ports:
        - "6847:3000"
      depends_on:
        - redminepostgres
      restart: unless-stopped

 

* G메일 연동
    - 구글 메일과 연동하여 메일 발송
    - configuration.yml파일 수정 필요
        - user_name: 연동하고자 하는 gmail
        - password: ⚠️ 패스워드는 아래 링크 참고하여 생성된 비번을 사용해야 한다
            - https://lee-it-alls.tistory.com/155

 

G-mail(구글 메일)로 메일 전송 구현시 필요한 패스워드 설정하기

G-mail(구글 메일)을 연동하여 메일 전송하는 시스템 구축을 원할 경우 이전보다 보안을 강화하여 메뉴를 숨겨 놓았다. 여기선 그부분을 공유하려 한다. 1. 메일 발송할 이메일을 생성한후 'Google

lee-it-alls.tistory.com

 

반응형

'Docker' 카테고리의 다른 글

Docker 명령어  (0) 2023.06.01
Docker 컨테이너 네트워킹  (0) 2023.05.22
profile

이런저런 IT 이야기

@이런저런 IT 이야기

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

profile on loading

Loading...

검색 태그