Created
November 4, 2024 13:25
-
-
Save reneweiser/8d9e9c628042b7472fde0ac0f0777a66 to your computer and use it in GitHub Desktop.
Laravel production environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| services: | |
| php: | |
| build: . | |
| environment: | |
| PHP_POST_MAX_SIZE: "200M" | |
| PHP_UPLOAD_MAX_FILE_SIZE: "200M" | |
| PHP_OPCACHE_ENABLE: "true" | |
| AUTORUN_ENABLED: "true" | |
| ports: | |
| - "80:8080" | |
| volumes: | |
| - .:/var/www/html/ | |
| mysql: | |
| image: mariadb:latest | |
| environment: | |
| MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} | |
| MARIADB_DATABASE: ${DB_DATABASE} | |
| MARIADB_USER: ${DB_USERNAME} | |
| MARIADB_PASSWORD: ${DB_PASSWORD} | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| env_file: | |
| - ./.env | |
| volumes: | |
| db_data: | |
| driver: local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM serversideup/php:8.3-fpm-nginx | |
| # Switch to root so we can do root things | |
| USER root | |
| # Install the intl extension with root permissions | |
| RUN install-php-extensions intl | |
| # Install Composer | |
| RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
| # Drop back to our unprivileged user | |
| USER www-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment