You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete all images : docker rmi -f $(docker images -a -q) - optional
Delete containers : docker rm fx_mongo_database fx_nginx fx_php_fpmnames found in docker-compose.yml, use docker ps -a to check if name of containers exist - optional
Change folders rights : chmod 777 docker/mongodb/db/ docker/mongodb/logs/
Build application : docker-compose up --build
App settings
In php file, connecting to mongoDB : (new MongoDB\Client('mongodb://myuser:docker@172.19.0.1:27017'))->mydb;, where most settings is in docker-compose.yml file & IP is from fx_nginx
Go live
Install NGROK
use docker ps -a to see PORTS
Start application
Start docker by docker-compose up
Start NGROK & lanch App by ngrok http 8881where 8881 is port
Start Mongo GUI
After containers are UP, Start NGROK (Mongo GUI) by ngrok http 4321where 4321 is port