Giter Club home page Giter Club logo

docker-matomo's Introduction

Hello world!

I'm a guy spending too much time breaking things he shouldn't.

docker-matomo's People

Contributors

wonderfall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-matomo's Issues

Unable to restart matomo container from image created by docker commit

Hello,

I committed the current state of both wonderfall/docker-matomo Container (service and db) as a new Images and tried to restart it afterwards with docker-compose up. Where the Database seems to run quite well, the Service does not.

The Web-Gui complains:
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve

but the container logs only show
matomo_1 | ln: /matomo/config/config.ini.php: File exists

Any Ideas how to bring them back to life?

Greetings,
Uwe

Missing instructions

Hi, Thanks for creating this repo. I almost got it to work but then restarted the container and it stopped working. I think the problem is the logic of copying the config file.

it would be great is you can add the docker-compose file. I made one you can start with:

version: "3"
services:
  matomo:
    container_name: matomo
    image: wonderfall/matomo
    links:
      - db_matomo:db_matomo
    volumes:
      - ./matomo/config:/config
    environment:
      - GID=1000
      - UID=1000
    depends_on:
      - db_matomo
    ports:
     - 8888:8888
    networks:
      - backend

  db_matomo:
    container_name: db_matomo
    image: mariadb:10
    volumes:
      - ./matomo/db:/var/lib
    environment:
      - MYSQL_ROOT_PASSWORD=asupersecretpassword
      - MYSQL_DATABASE=matomo
      - MYSQL_USER=matomo
      - MYSQL_PASSWORD=asupersecretpassword
    networks:
      - backend

networks:
  backend:
    external:
      name: backend

I also created these:

mkdir -p ./matomo/config
mkdir -p ./matomo/db

It seems that if the ./matomo/config is empty you try to copy some file into it. But that files does not seem to exist or it had been overwritten.

I get this on the matomo container when starting a clean run with both ./matomo/db and ./matomo/config directories empty.

> docker logs matomo
cp: can't stat '/matomo/config/config.ini.php': No such file or directory

I am going to send you a pull request if I can get it to work. But I am close to giving up.

Thanks
David

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.