Skip to content

Instantly share code, notes, and snippets.

@gongzhang
Last active July 29, 2018 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gongzhang/ce50b55ee25cd61ce6e4263198c03293 to your computer and use it in GitHub Desktop.
Save gongzhang/ce50b55ee25cd61ce6e4263198c03293 to your computer and use it in GitHub Desktop.
Redmine Docker Compose File

Redmine+MySQL Docker Compose File

File Name: docker-compose.yml

version: '3'

services:
  redmine:
    image: redmine
    container_name: redmine
    restart: always
    ports:
      - 3000:3000
    environment:
      - REDMINE_DB_MYSQL=redmine-db
      - REDMINE_DB_PASSWORD=redmine
    volumes:
      - files:/usr/src/redmine/files
      - plugin:/usr/src/redmine/plugins
      - theme:/usr/src/redmine/public/themes
    depends_on:
      - redmine-db

  redmine-db:
    image: mysql:5.7
    container_name: redmine-db
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=redmine
      - MYSQL_DATABASE=redmine
    volumes:
      - db:/var/lib/mysql
    command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci

volumes:
  files:
  db:
  plugin:
  theme:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment