tab.environment.docker.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. ?>
  3. <!-- DOCKER -->
  4. <div class="" id="docker-tab" >
  5. <label for="memory">Mémoire (RAM en Mo)</label>
  6. <input id="memory" name="memory" class="form-control" placeholder="" value="<?php echo $environment->memory; ?>" type="text">
  7. <label for="port">Port docker</label>
  8. <input value="<?php echo $environment->port; ?>" class="form-control" type="number" id="port" >
  9. <div class="row">
  10. <div class="col-md-6">
  11. <label for="mysqlRootPassword">Pass. Mysql Root</label>
  12. <small class="text-muted"> - Identifiant : root</small>
  13. <input value="<?php echo decrypt($environment->mysqlRootPassword); ?>" <?php echo $environment->id!=0?'readonly="readonly"':''; ?> class="form-control" type="text" data-type="password" data-generator autocomplete="new-password" id="mysqlRootPassword" >
  14. </div>
  15. <div class="col-md-6">
  16. <label for="mysqlPassword">Pass. Mysql App</label>
  17. <small class="text-muted"> - Identifiant : <?php echo $environment->domain; ?></small>
  18. <input value="<?php echo decrypt($environment->mysqlPassword); ?>" <?php echo $environment->id!=0?'readonly="readonly"':''; ?> class="form-control" type="text" data-type="password" data-generator autocomplete="new-password" id="mysqlPassword" >
  19. </div>
  20. </div>
  21. <hr/>
  22. <a class="btn btn-dark btn-docker-create my-2" onclick="docker_environment_docker_create(event);" href="#"><i class="fas fa-plus"></i> Créer l'hébergement</a>
  23. <a class="btn btn-danger btn-docker-remove my-2 mx-2" onclick="docker_environment_docker_remove(event);" href="#"><i class="fas fa-times"></i> Detruire l'hébergement</a>
  24. <?php if(!empty($environment->port)):
  25. $internalUrl = 'http://'.$machine->ip.':'.$environment->port;
  26. ?>
  27. <br>Url interne (si créé) : <a href="<?php echo $internalUrl; ?>"><?php echo $internalUrl; ?></a>
  28. <?php endif; ?>
  29. <hr/>
  30. <a class="btn btn-primary btn-pma-create my-2 " onclick="docker_environment_pma_create(event);" href="#"><i class="fas fa-plus"></i> Ouvrir un Accès PHPMyAdmin</a>
  31. <a class="btn btn-warning btn-pma-remove my-2 " onclick="docker_environment_pma_remove(event);" href="#"><i class="fas fa-times"></i> Fermer l'Accès PHPMyAdmin</a>
  32. <br>
  33. Url PMA (si créé) : <a href="http://10.172.20.109:8011">http://10.172.20.109:8011</a>
  34. </div>