Giter VIP home page Giter VIP logo

Comments (5)

DiouxX avatar DiouxX commented on August 15, 2024 1

I have tested now and I don't have the databse initialization problem.

2021-08-05_16h54_43

2021-08-05_16h55_03

2021-08-05_16h55_14

Are you sure that the /var/lib/mysql folder is empty ?
Is there not data from a previous install ?

Have you tested with another database mapping folder ?

from docker-glpi.

DiouxX avatar DiouxX commented on August 15, 2024

What is your docker-compose file ?
The mysql server is also on docker ?

If yes, the mysql server deployed with docker on the same docker-compose or a different docker deployment ?

from docker-glpi.

QBANIN avatar QBANIN commented on August 15, 2024

mysql.env

MYSQL_ROOT_PASSWORD=diouxx
MYSQL_DATABASE=glpidb
MYSQL_USER=glpi_user
MYSQL_PASSWORD=glpi

docker-compose.yml

version: "3.2"

services:
#Mysql Container
  mysql:
    image: mysql:5.7.23
    container_name: mysql
    hostname: mysql
    volumes:
      - /var/lib/mysql:/var/lib/mysql
    env_file:
      - ./mysql.env
    restart: always

#GLPI Container
  glpi:
    image: diouxx/glpi
    container_name : glpi
    hostname: glpi
    ports:
      - "7780:80"
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /var/www/html/glpi/:/var/www/html/glpi
    environment:
      - TIMEZONE=Europe/Brussels
    restart: always

The only change I made is exposed port number

from docker-glpi.

QBANIN avatar QBANIN commented on August 15, 2024

Facepalm You're right, /var/lib/mysql was already in use by another mariadb container :)

Everything works fine now. Thanks.

from docker-glpi.

DiouxX avatar DiouxX commented on August 15, 2024

I'm glad I could help you :)

from docker-glpi.

Related Issues (20)

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.