...
 
Commits (4)
    https://gitcode.net/awesome-mirrors/laradock/laradock/-/commit/f661694a81da5577cb784c28a100c5fe37eeca49 feat: add mailpit 2023-06-04T22:12:34+07:00 reishou reishou90@gmail.com https://gitcode.net/awesome-mirrors/laradock/laradock/-/commit/2cc022b112e825330a72e8e526cbc4841f57451b fix: oci8 fails install on PHP 8.1 2023-06-10T19:01:44-03:00 Andre Kutianski andre@eunarede.com Oracle OCI8 fails to install on PHP 8.1 due the new release available, created conditional to check compatibility. https://gitcode.net/awesome-mirrors/laradock/laradock/-/commit/30265fd5e8e5448ae2e8a58069f05543eb37ff99 Merge pull request #3400 from andrekutianski/fix-oci8-php81 2023-06-21T08:54:03+08:00 Shao Yu-Lung (Allen) bestlong168@gmail.com fix: oci8 fails install on PHP 8.1 https://gitcode.net/awesome-mirrors/laradock/laradock/-/commit/7b1eee549f1d9b7c684d9e2ff95616b9064a09d2 Merge pull request #3397 from reishou/master 2023-06-21T08:54:20+08:00 Shao Yu-Lung (Allen) bestlong168@gmail.com feat: add mailpit
......@@ -1079,3 +1079,7 @@ KEYCLOAK_POSTGRES_HOST=postgres
KEYCLOAK_POSTGRES_USER=laradock_keycloak
KEYCLOAK_POSTGRES_PASSWORD=laradock_keycloak
KEYCLOAK_POSTGRES_DB=laradock_keycloak
### Mailpit #################################################
MAILPIT_HTTP_PORT=8125
MAILPIT_SMTP_PORT=1125
......@@ -1507,6 +1507,29 @@ docker-compose up -d keycloak
- Username: `admin`
- Password: `secret`
<br>
<a name="use Mailpit"></a>
## Use Mailpit
1. Run the Mailpit Container (`mailpit`) with the `docker-compose up` command. Example:
```bash
docker-compose up -d mailpit
```
2. Open your browser and visit the localhost on port 8125: `http://localhost:8125`
3. Setup config in your Laravel project’s .env file
```text
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1125
MAIL_USERNAME=null
MAIL_PASSWORD=null
```
<br>
<a name="CodeIgniter"></a>
......
......@@ -1156,6 +1156,16 @@ services:
- frontend
- backend
### Mailpit ##############################################
mailpit:
build: ./mailpit
ports:
- "${MAILPIT_HTTP_PORT}:8025"
- "${MAILPIT_SMTP_PORT}:1025"
networks:
- frontend
- backend
### Selenium ###############################################
selenium:
build: ./selenium
......
FROM axllent/mailpit
LABEL maintainer="reishou <reishou90@gmail.com>"
......@@ -637,6 +637,8 @@ RUN if [ ${INSTALL_OCI8} = true ]; then \
echo 'instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/' | pecl install oci8-2.2.0; \
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8-3.0.1; \
elif [ $(php -r "echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;") = "81" ]; then \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8-3.2.1; \
else \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8; \
fi \
......
......@@ -962,6 +962,8 @@ RUN if [ ${INSTALL_OCI8} = true ]; then \
echo 'instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/' | pecl install oci8-2.2.0; \
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80000" ]; then \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8-3.0.1; \
elif [ $(php -r "echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;") = "81" ]; then \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8-3.2.1; \
else \
echo "instantclient,/opt/oracle/instantclient_${ORACLE_INSTANT_CLIENT_VERSION}/" | pecl install oci8; \
fi \
......