The Docker will host code from :
- the API : https://github.com/medialab/ScienceTrotterS_API
- the backoffice : https://github.com/medialab/ScienceTrotterS_backoffice
- the mobile app : https://github.com/medialab/ScienceTrotterS_mobile
git submodule statusThis application exposes three ports :
- the backoffice (default to 8080)
- the mobile app as web static app (default to 8081)
- the API port (default to 5000) used by the mobile application. This port could stay private by adding a reverse proxy in the nginx mobile_app configuration in ./mobile_app.conf
Exposed port are defined in docker_compose.yml
The API public URL must be specified in mobile_app.dockerfile env variable before building the container.
A PHP 7 container in which we add php-composer
docker build --build-arg DEVMODE=true -t phpcomposer -f phpcomposer.dockerfile .A nginx container in which we add a nodejs context to build the mobile app as a static web app.
Nodejs and dependencies are removed.
docker build -t mobile_app -f mobile_app.dockerfile .docker-compose upTo be done only once when the docker services are running to install PHP dependencies and to hydrate the database with some test data.
./setup_php_db.sh- add SSL conf to API nginx
- move composer isntall to Dockerfile
- add a database backup volume
- add an upload volume
add host and port conf in env variables in submodulesadd admin password in configurationlimit submodules to depth = 1