joeymasip / docker-symfony4 Goto Github PK
View Code? Open in Web Editor NEWDocker environment for a Symfony4 project
Docker environment for a Symfony4 project
Hi,
i have issue starting container - any idea why?
C:\php projects\docker-symfony4>docker-compose up
Starting docker-symfony4-php-fpm ...
Starting docker-symfony4-mysql ...
Starting docker-symfony4-webserver ... error
Starting docker-symfony4-php-fpm ... done
Starting docker-symfony4-mysql ... done
f1c9bb5943b601d): Error starting userland proxy: listen tcp 0.0.0.0:8000: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
ERROR: for webserver Cannot start service webserver: driver failed programming external connectivity on endpoint docker-symfony4-webserver (f02e51d276923d7872dcd8a51b70f146e52a0ee33bf0bf3f4f1c9bb5943b601d)
: Error starting userland proxy: listen tcp 0.0.0.0:8000: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
ERROR: Encountered errors while bringing up the project.
<?php
//
// src/Entity/Post.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\PostRepository")
*/
class Post
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=128)
*/
protected $name;
/**
* @ORM\Column(type="string", length=128)
*/
protected $last_name;
/**
* @ORM\Column(type="string", length=32)
*/
protected $phone;
/**
* @ORM\Column(type="string", length=32)
*/
protected $profession;
/**
* @ORM\Column(type="decimal", nullable=true)
*/
protected $age;
/**
* @ORM\Column(type="decimal", nullable=true)
*/
protected $salary;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $notice;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $created;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $updated;
}
bin/console doc:sch:crea
and after that, the console: !
! [CAUTION] This operation should not be executed in a production environment!
!
Creating database schema...
2018-03-24T19:52:41+00:00 [error] Error thrown while running command "'doc:sch:crea'". Message: "Schema-Tool failed with Error 'An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client' while executing DDL: CREATE TABLE post (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) NOT NULL, last_name VARCHAR(128) NOT NULL, phone VARCHAR(32) NOT NULL, profession VARCHAR(32) NOT NULL, age NUMERIC(10, 0) DEFAULT NULL, salary NUMERIC(10, 0) DEFAULT NULL, notice LONGTEXT DEFAULT NULL, created DATETIME DEFAULT NULL, updated DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB"
In ToolsException.php line 34:
Schema-Tool failed with Error 'An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client' while executing DDL: CREATE TABLE
post (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(128) NOT NULL, last_name VARCHAR(128) NOT NULL, phone VARCHAR(32) NOT NULL, profession VARCHAR(32) NOT NULL, age NUMERIC(10, 0) DEFAULT
NULL, salary NUMERIC(10, 0) DEFAULT NULL, notice LONGTEXT DEFAULT NULL, created DATETIME DEFAULT NULL, updated DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLAT
E utf8mb4_unicode_ci ENGINE = InnoDB
In AbstractMySQLDriver.php line 121:
An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
In PDOConnection.php line 47:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
In PDOConnection.php line 43:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
In PDOConnection.php line 43:
PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.