Slim Framework powered API for PDF Form Filling.
Fetching container images behind company proxy with self-signed certificate may fail. In such case, exiting network is recommended for ease of development.
- Git
- Docker Engine
- Composer
The docker compose consists of four services:
-
nginx Webserver
-
php-fpm PHP FastCGI implementation The app directory includes the Slim Framework slim-skeleton as a starting point.
-
postgres Database
-
adminer Database Management, web-based
clone git git@github.com:Research-IT-Swiss-TPH/pdf-api.git
cd pdf-api
git checkout dev
./bin/build-local.sh
..
./bin/install-local.sh
System: PostgresSQL Server: postgres Username: postgres Password: password Database: postgres
Set to permanent login
Web: http://143.198.242.211.nip.io/
Adminer: http://143.198.242.211.nip.io:8080
DB_USER=
DB_PASSWORD=
This has to be done in initial container setup
./bin/certs-dev # dry-run
./bin/certs-dev --run # actual run
Needs to be manually renewed every 90 days (or added to cron for automation, tbd.)
docker composer -f compose.dev.yml certbot run renew
# https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/