https://github.com/joduplessis/docker-old
General Docker odds & ends for projects. (mostly PHP stuff)
https://github.com/joduplessis/docker-old
apache docker nginx php vhosts
Last synced: about 1 month ago
JSON representation
General Docker odds & ends for projects. (mostly PHP stuff)
- Host: GitHub
- URL: https://github.com/joduplessis/docker-old
- Owner: joduplessis
- Created: 2017-04-24T14:21:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-07T16:43:56.000Z (almost 6 years ago)
- Last Synced: 2024-12-26T00:23:09.670Z (6 months ago)
- Topics: apache, docker, nginx, php, vhosts
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apache & PHP (vhost)
This is a general run-of-mill Apache installation using PHP. Nice thing here is that you can specify a vhosts file. Useful with Symfony & Laravel.
```
docker build -t "repo:tag" .
docker run -p 80:80 -v $(pwd):/var/www/html repo:tag
```# Apache & PHP (vanilla)
Stock standard Apache - serving from /var/www/html. Really good for CodeIgnitor, or other frameworks not requiring you to serve from a specific directory. Or CMS options too.
```
docker build -t "repo:tag" .
docker run -p 80:80 -v $(pwd):/var/www/html repo:tag
```# Nginx, PHP, Composer & MySQL
Useful holistic Compose file for Nginx.
```
docker compose up
```# Docker
No files, but because I forget stuff.
```
docker run --rm -v $(pwd):/app composer/composer install
```