LNPP Stack (Nginx, PHP, Postgres) in docker
Windows requires 64bit Windows 10 Pro with Hyper-V available. Please see What to know before you install for a full list of prerequisites.
macOS & Others unix just download and install on docker official site.
$ docker-compose up -d
If you already docker-compose up -d
you can just
$ docker-compose start
$ docker-compose stop
$ docker-compose down
├── nginx
│ ├── conf --- Nginx configuration folder
│ ├── log --- Nginx log folder
│ └── site --- Store our sites, php scripts
├── php7fpm
│ └── conf --- Php fpm configuration file
└── postgresql
├── conf --- PostgreSQL configuration folders
└── data --- PostgreSQL storage folder
Private address which container talk to each others
(If you want to access with host just add uncomment in docker-compose.yml)
(If you want to edit private ip address just go to .env file)
LNPP_GATEWAY=172.20.1.1
LNPP_SUBNET=172.20.1.0/16
LNPP_POSTGRES_IP=172.20.1.2
LNPP_NGINX_IP=172.20.1.3
LNPP_PHP7FPM=172.20.1.4