Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working docker-compose.yml #15

Closed
howardshand opened this issue Mar 7, 2024 · 2 comments
Closed

Working docker-compose.yml #15

howardshand opened this issue Mar 7, 2024 · 2 comments

Comments

@howardshand
Copy link

howardshand commented Mar 7, 2024

Good day,

Is anyone able to share a working docker-compose.yml? My attempt below seems to create some permissions issues and the GLPI install does not complete with the error "Database configuration file "/etc/glpi/config_db.php" is missing or is corrupted. You have to either restart the install process, either restore this file":

version: "3.2" 
name: some-help
services:
    mariadb:
        container_name: some-mariadb
        ports:
            - 3306:3306
        networks:
            - some-network
        environment:
            - MARIADB_USER=glpi-user
            - MARIADB_PASSWORD=glpi-password
            - MARIADB_ROOT_PASSWORD=root-password
            - MARIADB_DATABASE=glpi
        volumes:
            - ./data/mysql-dir:/var/lib/mysql
        image: mariadb:latest
    glpi-server:
        container_name: some-glpi
        ports:
            - 8089:80
        networks:
            - some-network
        environment:
            - MYSQL_HOST=some-mariadb
            - MYSQL_PORT=3306
            - MYSQL_ROOT_PASSWORD=root-password
            - MYSQL_USER=glpi-user
            - MYSQL_PASSWORD=glpi-password
            - MYSQL_DATABASE=glpi
            - LANG=fr_FR
            - TZ="Europe/Paris"
        volumes:
            - ./data/glpi-config:/etc/glpi
            - ./data/glpi-files:/var/glpi/files
            - ./data/glpi-plugins:/var/www/glpi/plugins
            - ./data/glpi-marketplace:/var/www/glpi/marketplace
        image: ppcm/glpi-server:latest
    glpi-cron-daemon:
        container_name: some-glpi-cron-daemon
        networks:
            - some-network
        environment:
            - CRON_SCHEDULE=*/2 * * * *
            - TZ="Europe/Paris"
        volumes:
            - ./data/glpi-config:/etc/glpi
            - ./data/glpi-files:/var/glpi/files
            - ./data/glpi-plugins:/var/www/glpi/plugins
            - ./data/glpi-marketplace:/var/www/glpi/marketplace
        image: ppcm/glpi-cron-daemon:latest
networks:
    some-network:
        name: some-network
@PPCM
Copy link
Owner

PPCM commented Mar 9, 2024

@SainteKhalifa This is always the first question 👍

@howardshand Take a look to this ticket #3

@howardshand
Copy link
Author

Thanks @PPCM, I've submitted #16 incase you will consider it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants