From 491e280c3595db9b7a8dfce0f92f4800fa689e5c Mon Sep 17 00:00:00 2001 From: Joseph Barreca Date: Fri, 26 Mar 2021 16:19:13 -0400 Subject: [PATCH] remove nginx-php-mysql items Signed-off-by: Joseph Barreca --- nginx-php-mysql/README.md | 68 ---------------------------- nginx-php-mysql/backend/.DS_Store | Bin 6148 -> 0 bytes nginx-php-mysql/backend/Dockerfile | 1 - nginx-php-mysql/db/password.txt | 1 - nginx-php-mysql/docker-compose.yaml | 34 -------------- nginx-php-mysql/proxy/.DS_Store | Bin 6148 -> 0 bytes nginx-php-mysql/proxy/Dockerfile | 2 - nginx-php-mysql/proxy/conf | 32 ------------- nginx-php-mysql/src/index.php | 3 -- 9 files changed, 141 deletions(-) delete mode 100644 nginx-php-mysql/README.md delete mode 100644 nginx-php-mysql/backend/.DS_Store delete mode 100755 nginx-php-mysql/backend/Dockerfile delete mode 100644 nginx-php-mysql/db/password.txt delete mode 100644 nginx-php-mysql/docker-compose.yaml delete mode 100644 nginx-php-mysql/proxy/.DS_Store delete mode 100755 nginx-php-mysql/proxy/Dockerfile delete mode 100755 nginx-php-mysql/proxy/conf delete mode 100644 nginx-php-mysql/src/index.php diff --git a/nginx-php-mysql/README.md b/nginx-php-mysql/README.md deleted file mode 100644 index 5c849ad..0000000 --- a/nginx-php-mysql/README.md +++ /dev/null @@ -1,68 +0,0 @@ -## Compose sample application -### PHP server with an Nginx proxy and a MySQL database - -Project structure: -``` -. -├── backend -│   ├── Dockerfile -├── db -│   └── password.txt -├── docker-compose.yaml -├── proxy -│   ├── conf -│   └── Dockerfile -├── src -│   ├── index.php -└── README.md -``` - -[_docker-compose.yaml_](docker-compose.yaml) -``` -services: - backend: - build: backend - ... - db: - image: mysql:8.0.19 - ... - proxy: - build: proxy - ports: - - 80:80 - ... -``` -The compose file defines an application with three services `proxy`, `backend` and `db`. -When deploying the application, docker-compose maps port 80 of the proxy service container to port 80 of the host as specified in the file. -Make sure port 80 on the host is not already in use. - -## Deploy with docker-compose - -``` -$ docker-compose up -d -Creating nginx-php-mysql_db_1 ... done -Creating nginx-php-mysql_backend_1 ... done -Creating nginx-php-mysql_proxy_1 ... done -``` - -## Expected result - -Listing containers must show three containers running and the port mapping as below: -``` -$ docker ps -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -2244050972fc nginx-php-mysql_proxy "/docker-entrypoint.…" 51 seconds ago Up 49 seconds 0.0.0.0:80->80/tcp nginx-php-mysql_proxy_1 -75353040cb38 nginx-php-mysql_backend "docker-php-entrypoi…" 51 seconds ago Up 50 seconds 9000/tcp nginx-php-mysql_backend_1 -e54bd7e0c790 mysql:8.0.19 "docker-entrypoint.s…" 52 seconds ago Up 50 seconds 3306/tcp, 33060/tcp nginx-php-mysql_db_1 -``` - -After the application starts, navigate to `http://localhost:80` in your web browser or run: -``` -$ curl localhost:80 -

hello world in php!

-``` - -Stop and remove the containers -``` -$ docker-compose down -``` diff --git a/nginx-php-mysql/backend/.DS_Store b/nginx-php-mysql/backend/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0S5Z<*_w-qr5!5;VGt%tN&#DfrOJ$Mr$dQfQ-TWlaEB}pwBD|rolBcH(6 zab|Zb7JKj{VrO9Yo7tJ!&3uskVT|$ixZhyRVvGrBh#Zv#g2M}4D<&9`;~eS84`Uy! zH-BV&e;x4KODtsxyYVMqzdsDp%(mb8N~yfMwk||fR5z>F?l7LXnU{^zwwGL@b?Rk9 z-{@y?9DeGae;y1bU2FR&jxsNZ28l`z`U42Lx(K3vJZZ<{sGq8NTwnop(t~hello world in php!'; -?> \ No newline at end of file