I used to launch Redmine on Docker on Mac, but it didn't work if I did the same.
-Build Redmine on Docker container on Mac
So, I will keep a record until it is launched. Installation of Docker on Raspberry Pi 3 has already been done below.
-I installed Docker on Raspberry Pi 3
This is docker-compose.yml that I used for Mac last time.
docker-compose.yml
version: '3.8'
services:
  redmine:
    container_name: redmine
    image: redmine
    restart: always
    ports:
      - 3000:3000
    volumes:
      - ./Redmine/plugins:/usr/src/redmine/plugins
      - ./Redmine/themes:/usr/src/redmine/public/themes
    environment:
      REDMINE_DB_MYSQL: redmine-db
      REDMINE_DB_PASSWORD: redmine
  redmine-db:
    image: mariadb
    container_name: redmine-db
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: redmine
      MYSQL_DATABASE: redmine
    volumes:
      - ./db:/var/lib/mysql
    command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
I will omit it on the way. At mariadb, "** no matching manifest for linux/arm/v7 in the manifest list entries **" occurred.
$ docker-compose up -d
Pulling redmine-db (mariadb:)...
latest: Pulling from library/mariadb
ERROR: no matching manifest for linux/arm/v7 in the manifest list entries
It seems that neither mariadb nor mysql works on Debian (OS of Raspberry Pi).
I decided to use the following image in Docker Hub.
docker-compose.yml
Click here for the final docker-compose.yml. I just changed the image.
docker-compose.yml
version: '3.8'
services:
  redmine:
    container_name: redmine
    image: redmine
    restart: always
    ports:
      - 3000:3000
    volumes:
      - ./Redmine/plugins:/usr/src/redmine/plugins
      - ./Redmine/themes:/usr/src/redmine/public/themes
    environment:
      REDMINE_DB_MYSQL: redmine-db
      REDMINE_DB_PASSWORD: redmine
  redmine-db:
    image: hypriot/rpi-mysql
    container_name: redmine-db
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: redmine
      MYSQL_DATABASE: redmine
    volumes:
      - ./db:/var/lib/mysql
    command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
docker-compose up
Check the image.
$ docker images
REPOSITORY          TAG       IMAGE ID       CREATED       SIZE
redmine             latest    f2b5b69f9ad5   4 weeks ago   440MB
hypriot/rpi-mysql   latest    4f3cbdbc3bdb   2 years ago   209MB
Let's start it up.
$ docker-compose up -d
Creating redmine    ... done
Creating redmine-db ... done
Redmine should be running on Docker of Raspberry Pi 3, so try accessing it from Mac. Check the IP address with `` `ifconfig``` in advance, and access * http: //000.000.000.000: 3000 * with a browser.

I was able to access it safely.
It's simple to describe, but it took a surprising amount of time to confirm the replacement with another image. Docker has various images and is very helpful.
Recommended Posts