Code Monkey home page Code Monkey logo

docker_amp's Introduction

docker_amp


description :

Environnement AMP dockeriser
Version : 1.0.0
Date : 2020-01-27
Responsable : HI


Mise en oeuvre :

  • modifiez les nom, login et mot de passe de la db par vos propres données (ligne 19 à 22 du fichier docker-compose.yml).

  • modifiez les ports si nécéssaire (lignes 6 et 34 u fichier docker-compose.yml).

  • depuis un terminal, rendez-vous à la racine du repo /docker-amp (là où se trouve le fichier docker-compose ) et lancer la ligne de commande suivante :

    • $ docker-compose up -d
  • insérer les fichiers html, php, javaScript, css ... dans le repo /www.

  • pour utiliser une base de données, insérer le fichier .sql dans le repo /dump.

  • utilisez le repo /conf si vous faites tourner mySql dans un container.


Utilisation :

Une fois les containers buildés et au moins un fichier index.html ou index.php inséré dans le repo /www, l'application est visible à l'adresse suivante : http://localhost:8080/ (ou autre port si modifié).

Pour accéder à phpmyadmin, l'adresse est : http://localhost:8000/ (ou autre port si modifié).


Rappel des principales commandes Docker :

  • pour stopper les containers :

    • $ docker-compose stop
  • pour les relancer si déjà buildés :

    • $ docker-compose start
  • pour lister les containers :

    • $ docker-compose ps
  • pour supprimer les containers et les volumes de données (attention, supprime tout !) :

    • $ docker-compose down -v

docker_amp


description :

Environnement AMP dockeriser
Version : 1.0.1
Date : 2020-01-27
Responsable : HI


Implementation :

  • modify the db name, login and password with your own data (line 19 to 22 of the docker-compose.yml file).

  • modify the ports if necessary (lines 6 and 34 of the docker-compose.yml file).

  • from a terminal, go to the root of the repo / docker-amp (where the docker-compose file is located) and launch the following command line :

    • $ docker-compose up -d
  • insert html, php, javaScript, css ... files into the repo /www.

  • to use a database, insert the .sql file into the repo /dump.

  • use the repo /conf if you are running mySql in a container.


Utilisation :

Once the containers have been built and at least one index.html or index.php file inserted in the repo /www, the application is visible at the following address: http://localhost:8080/ (or other port if modified).

To access phpmyadmin, the address is: http://localhost:8000/ (or other port if modified).


Reminder of the main Docker commands:

  • to stop the containers:

    • $ docker-compose stop
  • to relaunch them if already built:

    • $ docker-compose start
  • to list the containers:

    • $ docker-compose ps
  • to delete containers and data volumes (be careful, delete everything !) :

    • $ docker-compose down -v

docker_amp's People

Contributors

isasxm avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.