Statistiques web avec Ackee via Docker
1. Installation de la Base MongoDB :
docker run -p 27017:27017 -v /path/to/local/folder:/data/db --name mongo mongo
Explication :
-pouvrir le port27017disponible sur le port27017sur l'host-vmounts/path/to/local/foldervers/data/dbdu container--namechoisir un nom au containermongomongole nom de l'image docker
2. Création du container Ackee et de MongoDB
docker run -p 3000:3000 -e ACKEE_MONGODB='mongodb://mongo:27017/ackee' -e ACKEE_USERNAME='username' -e ACKEE_PASSWORD='password' --link mongo --name ackee electerious/ackee
Explanation:
-pmakes port3000available at port3000on the host-esets environment variables required by Ackee--linklinks Ackee with themongocontainer--namesets the container name toackeeelecterious/ackeeis the name of the image
3. Ouvrir Ackee
docker run -p 3000:3000 -e ACKEE_MONGODB='mongodb://mongo:27017/ackee' -e ACKEE_USERNAME='username' -e ACKEE_PASSWORD='password' --link mongo --name ackee electerious/ackee
Aucun commentaire à afficher
Aucun commentaire à afficher