This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
mysql: | |
image: mysql:5.6 | |
container_name: kodetop.mysql | |
environment: | |
- MYSQL_DATABASE=kodedb | |
- MYSQL_USER=kodeuser | |
- MYSQL_PASSWORD=******** | |
- MYSQL_ROOT_PASSWORD=******** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore macOS hidden files | |
.DS_STORE | |
# Ignore Windows hidden files | |
Thumbs.db | |
# Ignore Node files | |
node_modules/ | |
# Ignore all log files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Manejo de imagenes | |
docker images # Lista todas las imagenes | |
docker pull [image-name] # Descarga una imagen desde docker hub | |
docker build -t [image-name] . # Crea una imagen y le asigna un nombre | |
docker rmi [image-name] # Elimina una imagen usando el nombre | |
docker rmi [image-id] # Elimina una imagen basado el ID | |
# Crear contenedor | |
docker create --name [container-name] [image-name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-apache | |
RUN docker-php-ext-install mysqli pdo pdo_mysql | |
RUN a2enmod rewrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
web: | |
build: . | |
container_name: docker-php | |
ports: | |
- "80:80" | |
volumes: | |
- ./www:/var/www/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "kodetop/composer", | |
"description": "Composer demo project", | |
"type": "project", | |
"authors": [ | |
{ | |
"name": "Kodetop", | |
"email": "info@kodetop.com" | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$mail = new PHPMailer(true); | |
$mail->isSMTP(); | |
$mail->SMTPAuth = true; | |
$mail->SMTPSecure = 'ssl'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PHPMailer\PHPMailer\PHPMailer; | |
use PHPMailer\PHPMailer\Exception; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$mail = new PHPMailer(true); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mysql: | |
image: mysql:5.6 | |
container_name: docker-mysql | |
environment: | |
MYSQL_DATABASE: database_name | |
MYSQL_USER: my_username | |
MYSQL_PASSWORD: my_password |
OlderNewer