Giter Site home page Giter Site logo

Comments (5)

5ym avatar 5ym commented on July 18, 2024

mysqlのボリュームは適切に設定していますでしょうか

from docker-mirakurun-epgstation.

stu2005 avatar stu2005 commented on July 18, 2024

以下が自分のdocker-compose.ymlです。

version: "3.7"
services:
  mirakurun:
    build:
      context: ../
      dockerfile: docker/Dockerfile
    image: chinachu/mirakurun:latest
    cap_add:
      - SYS_ADMIN
      - SYS_NICE
    environment:
      TZ: Asia/Tokyo
      # LOG_LEVEL: "3"
      # DEBUG: "true"
    ports:
      - xxxxx:40772
      - xxxx:9229
    devices:
      - /dev/bus/usb/001/007:/dev/bus/usb/001/007
      - /dev/bus/usb/001/006:/dev/bus/usb/001/006
    volumes:
      - /usr/local/mirakurun/run/:/var/run/
      - /usr/local/mirakurun/opt/:/opt/
      - /usr/local/mirakurun/config/:/app-config/
      - /usr/local/mirakurun/data/:/app-data/
    restart: always
    logging:
      driver: json-file
      options:
        max-file: "1"
        max-size: 10m

  chinachu:
    build:
        context: chinachu
        args:
         - REPOSITORY=git://github.com/Chinachu/Chinachu.git
         - BRANCH=gamma
    container_name: chinachu
    ports:
     - "xxxxx:10772"
     - "xxxxx:20772"
    volumes:
     - /etc/localtime:/etc/localtime:ro
     - ./chinachu/conf/config.json:/usr/local/chinachu/config.json
     - ./chinachu/conf/rules.json:/usr/local/chinachu/rules.json
     - ./chinachu/data:/usr/local/chinachu/data
     - /mnt/hdd/recorded:/usr/local/chinachu/recorded
    links:
     - mirakurun:container-mirakurun
    restart: always

  mysql:
    image: linuxserver/mariadb
    volumes:
      - mysql-db:/var/lib/mysql
    environment:
        MYSQL_USER: epgstation
        MYSQL_PASSWORD: epgstation
        MYSQL_ROOT_PASSWORD: epgstation
        MYSQL_DATABASE: epgstation
        TZ: "Asia/Tokyo"
    command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --performance-schema=false --expire_logs_days=1
    restart: always
    logging:
      options:
        max-size: "10m"
        max-file: "3"

  epgstation:
    build: epgstation
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./epgstation/config:/app/config
      - ./epgstation/data:/app/data
      - ./epgstation/thumbnail:/app/thumbnail
      - ./epgstation/logs:/app/logs
      - /mnt/hdd/recorded:/app/recorded
    environment:
      TZ: "Asia/Tokyo"
    depends_on:
      - mirakurun
      - mysql
    ports:
      - "xxxx:8888"
#      - "8889:8889"
    #user: "1000:1000"
    restart: always

volumes:
  mysql-db:
    driver: local

from docker-mirakurun-epgstation.

stu2005 avatar stu2005 commented on July 18, 2024

おそらくlinuxserver/mariadbへの変更が影響してると予想してます。

from docker-mirakurun-epgstation.

5ym avatar 5ym commented on July 18, 2024

イメージが更新された際にボリュームがリセットされている模様です。
書かせていただいた当方の環境ではディレクトリにしていたため気づきませんでした。
mariadbのvolumeの個所を一旦./db:/var/lib/mysqlのようにディレクトリに設定をお願い致します。

from docker-mirakurun-epgstation.

stu2005 avatar stu2005 commented on July 18, 2024

イメージの変更に伴い/var/lib/mysql/config/databasesに変更する必要がありました。解決しましたので閉じます。

from docker-mirakurun-epgstation.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.