https://github.com/v3ssel/simpledockerexample
Just simple docker image with Nginx + FastCGI and docker-compose proxy server
https://github.com/v3ssel/simpledockerexample
c docker docker-compose example fastcgi
Last synced: 4 months ago
JSON representation
Just simple docker image with Nginx + FastCGI and docker-compose proxy server
- Host: GitHub
- URL: https://github.com/v3ssel/simpledockerexample
- Owner: v3ssel
- Created: 2022-10-14T19:27:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T19:29:50.000Z (over 3 years ago)
- Last Synced: 2025-03-02T23:17:23.931Z (11 months ago)
- Topics: c, docker, docker-compose, example, fastcgi
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Example
## Firstly, install docker
## Simple Docker Image
Go to the *server* folder and run `build.sh` via bash.
It built a docker image from a Dockerfile and started a container with a very simple Nginx + FastCGI web page.
Now in your browser go to *http://localhost:80/* or *http://localhost:81/* to see the result.
Or go to *http://localhost:80(1)/status* to see the Nginx server status.
To delete container and image run `remove.sh` via bash.
## Docker Proxy Server
Go to the *proxy_servers* folder and run `build_proxy.sh`.
Now you can see simple web pages at *http://localhost:80* or *http://localhost:80/status*.
This is an example of simple proxy with docker-compose.
We start on the local machine, goes to *http://localhost:80*, but on the way to the server we will go through several proxies:
*local:80 -> nginx:8080 -> server:81 -> server:80*
## P.S. *Server* and *proxy_servers* folders contains what-happen.md files