flexyourrights / docker-openpolice
Docker Compose configuration for Open Police Complaints ^0.1 running PHP 7.3 with Nginx, PHP-FPM, PostgreSQL 11.2 and Composer.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
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/.