An open API service indexing awesome lists of open source software.

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)

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
```