Home>

I am trying to build a docker redmine using the images of samesbn/redmine and mariadb.
When docker-compose is executed with the following docker-compose file, the following error message is displayed.

Error message
ERROR:
  Please configure the database connection.
  Refer http://git.io/JkE-cw for more information.
  Cannot continue without a database. Aborting ...
Applicable source code
version: '2'
services:
  redmine:
    image: sameersbn/redmine
    container_name: redmine
    ports:
      -3000: 3000
    environment:
      REDMINE_DB_MYSQL: mariadb
      REDMINE_DB_PASSWORD: redmine
    volumes:
      -/ usr/locla/bin/redmine/home:/home/redmine/data
    depends_on:
      -mariadb
    restart: always
  mariadb:
    image: mariadb
    hostname: mariadb
    container_name: mariadb
    environment:
      MYSQL_DATABASE: xxxx
      MYSQL_PASSWORD: xxxx
      MYSQL_USER: xxxxx
      MYSQL_ROOT_PASSWORD: xxxxx
    command: mysqld --character-set-server = utf8 --collation-server = utf8_unicode_ci
    ports:
      -8080: 80
    restart: always