version: '2'
services:
  mysql:
    image: sameersbn/mysql:5.7.22-1
    environment:
    - DB_USER=redmine
    - DB_PASS=password
    - DB_NAME=redmine_production
    ports:
    - "3308:3306"
    volumes:
    - /redmine/mysql:/var/lib/mysql

  redmine:
    build: ./
    image: sameersbn/redmine:4.0.4
    links:
    - mysql
    environment:
    - TZ=Asia/Kolkata

    - DB_ADAPTER=mysql2
    - DB_HOST=mysql
    - DB_PORT=3306
    - DB_USER=redmine
    - DB_PASS=password
    - DB_NAME=redmine_production
        
    - REDMINE_PORT=10082
    - REDMINE_DATA_DIR=/home/redmine/data
#    - REDMINE_HTTPS=false

    ports:
    - "88:80"
    volumes:
    - /redmine/redmine:/home/redmine/data

启动:docker-compose up -d