Skip to content

Instantly share code, notes, and snippets.

View Mattia541993's full-sized avatar

Mattia Ducci Mattia541993

View GitHub Profile
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
$servername = "database";
$username = "root";
$password = "123";
$dbname = "stt_db";
mysql -uroot -p123 -h127.0.0.1 -P9906
mysql -uroot -p123 -h127.0.0.1 -P3325
mysql -uroot -p123 -h127.0.0.1 -P3325
FROM php:7.4-cli
COPY ./local /usr/src/dst_folder
WORKDIR /usr/src/dst_folder
RUN docker-php-ext-install pdo pdo_mysql
version: '3'
services:
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: stt_db
MYSQL_USER: devuser
MYSQL_PASSWORD: 123
version: '3'
services:
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: stt_db
MYSQL_USER: devuser
MYSQL_PASSWORD: 123