flexyourrights/docker-openpolice

This package is abandoned and no longer maintained. No replacement package was suggested.

Docker Compose configuration for Open Police Complaints ^0.1 running PHP 7.3 with Nginx, PHP-FPM, PostgreSQL 11.2 and Composer.

v0.2.1 2019-04-25 14:28 UTC

This package is not auto-updated.

Last update: 2021-01-30 14:31:18 UTC


README

This install process installs Open Police Complaints with Docker, Laravel, SurvLoop, Laradock, Nginx, MYSQL, and Phpmyadmin.

Overview

Couldn't get my original attempt working with a Docker Compose configuration. Perhaps someone can help me, now that this install process is at least easier. Thanks!

Install prerequisites

You will need:

How to use it

How To Install OpenPolice with Laradock

First, install Docker on Mac, Windows, or an online server. Then grab a copy of Laravel (last tested with v5.8.3)...

$ git clone https://github.com/laravel/laravel.git opc
$ cd opc

Next, install and boot up Laradock (last tested with v7.14).

$ git submodule add https://github.com/Laradock/laradock.git
$ cd laradock
$ cp env-example .env
$ docker-compose up -d nginx mysql phpmyadmin redis workspace

After Docker finishes booting up your containers, enter the mysql container with the root password, "root". This seems to fix things for the latest version of MYSQL.

$ docker-compose exec mysql bash
# mysql --user=root --password=root default
mysql> ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret';
mysql> exit;
$ exit

At this point, you should be able to browse to http://localhost:8080 for PhpMyAdmin.

Server: mysql
Username: default
Password: secret

Finally, enter Laradock's workspace container to download and run the Open Police installation script.

$ docker-compose exec workspace bash
# git clone https://github.com/flexyourrights/docker-openpolice.git
# chmod +x ./docker-openpolice/bin/*.sh
# ./docker-openpolice/bin/openpolice-laradock-postinstall.sh
# docker-compose exec workspace composer require flexyourrights/openpolice-website

And if all has gone well, you'll be asked to create a master admin user account when you browse to http://localhost/.

Change configuration