Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vagnercardosoweb/docker-php8
Docker with php8.2+, apache, mysql, postgresql, phpmyadmin, redis, nginx and pgadmin
https://github.com/vagnercardosoweb/docker-php8
apache docker docker-compose mysql pgadmin4 php php82 postgresql
Last synced: about 1 hour ago
JSON representation
Docker with php8.2+, apache, mysql, postgresql, phpmyadmin, redis, nginx and pgadmin
- Host: GitHub
- URL: https://github.com/vagnercardosoweb/docker-php8
- Owner: vagnercardosoweb
- License: mit
- Created: 2019-06-07T03:52:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T17:59:28.000Z (4 months ago)
- Last Synced: 2024-12-16T04:04:03.660Z (7 days ago)
- Topics: apache, docker, docker-compose, mysql, pgadmin4, php, php82, postgresql
- Language: Dockerfile
- Homepage:
- Size: 32.2 KB
- Stars: 155
- Watchers: 11
- Forks: 177
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker with PHP 8.3.4
This repository aims to facilitate the creation of a development environment with php 8.3.4
## What's in the environment:
- [Nginx](https://www.nginx.com/)
- [PhpFpm](https://php.net/)
- [Apache2](https://httpd.apache.org/)
- [MySQL](https://www.mysql.com/)
- [MariaDB](https://mariadb.com/)
- [PhpMyAdmin](https://www.phpmyadmin.net/)
- [PgAdmin](https://www.pgadmin.org/)
- [PostgreSQL](https://www.postgresql.org/)
- [Redis](https://redis.io/)## Prerequisites:
- [Install Docker](https://docs.docker.com/install/)
- [Install Docker Compose](https://docs.docker.com/compose/install/)## How to use:
- Clone the repository
- Enter the repository folder
- Run the `docker-compose up` command
- if you want to run in background mode, run the command `docker-compose up -d`
- Access the address `http://localhost:8080` to access phpmyadmin
- user access
- user: mysql
- password: mysql
- host: mysql
- root access
- user: root
- password: root
- host: mysql
- Access the address `http://localhost:8081` to access pgadmin
- user: [email protected]
- password: admin
- Access the address `http://localhost` to access the project## Persistent data:
- mysql data: `./docker/mysql/dbdata`
- postgresql data: `./docker/postgresql/dbdata`
- redis data: `./docker/redis`## PHP INI Config:
Local php.ini configuration is located in the `./docker/php/php.ini` file.
```ini
[PHP]
log_errors=On
xmlrpc_errors=On
html_errors=On
display_errors=On
display_startup_errors=On
report_memleaks=On
error_reporting=E_ALL
file_uploads=On
max_execution_time=120
max_input_time=120
session.gc_maxlifetime=1440
post_max_size=50M
upload_max_filesize=45M
max_file_uploads=20
variables_order="EGPCS"
max_input_vars=10000
max_input_nesting_level=64
date.timezone=UTC
memory_limit=512M
expose_php=On[opcache]
opcache.enable=true
opcache.enable_cli=true
opcache.jit=tracing[intl]
intl.default_locale=en_utf8[xdebug]
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.discover_client_host=0
xdebug.start_with_request=yes
xdebug.remote_handler=dbgp
xdebug.idekey=PHPSTORM
xdebug.mode=debug,develop
xdebug.cli_color=1
```## PHP Modules:
```
[PHP Modules]
apcu
bcmath
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gmp
hash
iconv
imap
intl
json
libxml
mbstring
mongodb
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
random
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
ssh2
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xdebug
xml
xmlreader
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib[Zend Modules]
Xdebug
Zend OPcache
```## Comments:
The project starts the services of `nginx`, `php`, `mysql`, `postgresql`, `phpmyadmin`, `pgadmin`
and `redis` by default, if you want to use `apache2`, `mariadb` you need to comment the services
that are being used and enable the services you want to use on the
`docker-compose.yml` file.## License:
[MIT](https://opensource.org/licenses/MIT)