Apprentidate is a web application to create events and polls (and even events with polls!)
A hosted version is accessible at date.apprentimag.fr.
Just install Docker and Docker Compose, then run:
$ make up
Now, open localhost:8000 and start hacking!
In background, the Makefile
calls docker-compose
with the docker/docker-compose.yml
file. This file defines two services:
nginx
which serves static files (from thepublic
folder) and pass PHP requests to the second servicephp
which serves all the PHP requests
You can also take a look to the docker/nginx.conf
file which defines how
Nginx talks with the php
service.
If you want to put Apprentidate in production, you can reuse these files but
take care to change the environment variables in the docker-compose.yml
file:
APP_ENVIRONMENT
must be set toproduction
APP_SECRET_KEY
must be changed to a random string