https://github.com/c0de4un/docker-nginx-php-mysql
PHP-based projects layout template designed to run within docker
https://github.com/c0de4un/docker-nginx-php-mysql
docker docker-compose mysql nginx php php-fpm php8 php81
Last synced: 3 months ago
JSON representation
PHP-based projects layout template designed to run within docker
- Host: GitHub
- URL: https://github.com/c0de4un/docker-nginx-php-mysql
- Owner: c0de4un
- License: mit
- Created: 2022-08-09T15:39:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T15:41:01.000Z (almost 4 years ago)
- Last Synced: 2025-10-10T16:34:22.932Z (9 months ago)
- Topics: docker, docker-compose, mysql, nginx, php, php-fpm, php8, php81
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Commands
Build and start containers
```sh
$docker-compose up --build -d
$docker-compose run -d -p 80:80 www
```
Stop contaienrs and remove images
```sh
$docker-compose down
```
## App Sources
All sources are in `www/html`, and they are mounted via `volume` feature, so no restart of service is required
## Database
phpMyAdmin is available at `localhost:8080`
Credentials are set in `db/Dockerfile`, host is `db`, which is set in `docker-compose.yml`
Persistent storage is at `db/data`