Skip to content

Dockerize and add docker-compose file

Jan Böhmer requested to merge github/fork/schulzh/nextgen into nextgen

Created by: schulzh

Related: https://github.com/Part-DB/Part-DB/issues/14

This PR adds a Dockerfile to build a docker image of PartDB itself and a docker-compose file to bring up a PartDB server complete with database.

The Dockerfile is based on php:7-apache. While I could not get this to work on the nextgen branch (the database schema seems to have problems), I have successfully tested it on the v0.4.6 tag.

The docker-compose.yml uses MariaDB as database. When configuring PartDB for the first time, configure the database as follows:

  • host: database
  • database: partdb
  • user: root
  • password: foobar

Merge request reports