[docker] redmine 세팅

세팅환경

  • CentOS Linux release 7.8.2003 (Core)
  • Docker version 20.10.6

docker-compose.yml

version: '3.2'

services:

  redmine:
    image: redmine
    restart: always
    ports:
      - 8080:3000
    environment:
      REDMINE_DB_MYSQL: db
      REDMINE_DB_PASSWORD: PASSWORD
      REDMINE_SECRET_KEY_BASE: supersecretkey
    
  db:
    image: mysql:5.7
    restart: always
    ports:
     - 3330:3306
    environment:
      MYSQL_ROOT_PASSWORD: PASSWORD
      MYSQL_DATABASE: redmine 
    volumes:
     - db_data:/var/lib/mysql
    command:
     - --character-set-server=utf8mb4
     - --collation-server=utf8mb4_unicode_ci

volumes:
  db_data:

httpd-vhost.conf

<VirtualHost *:80>
  ServerName redmine.ujsstudio.com
  ProxyPass / http://localhost:8080/
  ProxyPassReverse / http://localhost:8080/
</VirtualHost>

해당 도메인으로 접속하면 아파치 서버에서 localhost:8080 으로 넘겨줘서 외부에서 접속 가능하게 됨

https://github.com/jisung87kr/docker-redmine