https://github.com/alexndr-novikov/lnmp-docker
Simple Nginx+PHP+MySQL docker template
https://github.com/alexndr-novikov/lnmp-docker
docker-compose lnmp lnmp-dockerfile php
Last synced: 7 months ago
JSON representation
Simple Nginx+PHP+MySQL docker template
- Host: GitHub
- URL: https://github.com/alexndr-novikov/lnmp-docker
- Owner: alexndr-novikov
- Created: 2017-05-17T09:22:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T15:42:15.000Z (over 7 years ago)
- Last Synced: 2025-01-19T22:46:40.090Z (9 months ago)
- Topics: docker-compose, lnmp, lnmp-dockerfile, php
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lnmp-docker
Simple Nginx+PHP+MySQL+PostgreSQL docker templateInstall docker-ce and docker-compose if haven't done it yet (use the latest version from the official repos)
PHP application should be located in www/* folders.
Nginx configs are located in /hosts folder. Copy demo.dev config and change it to create new sites.
Execute the following to startup the application
```
docker-compose up -d
```Execute the following to stop the application
```
docker-compose down
```Execute the following to stop the application, deleting created data
```
docker-compose down --volumes
```Add lnmp.local to hosts file being linked to docker local ip.
Visit http://demo.dev in browser , after you added in hosts```
127.0.0.1 demo.dev
```