This file contains 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
version: '3.8' | |
services: | |
app: | |
build: | |
context: ./ | |
dockerfile: app.dockerfile | |
working_dir: /var/www | |
volumes: | |
- ./:/var/www | |
depends_on: |
This file contains 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
web: | |
build: | |
context: ./ | |
dockerfile: web.dockerfile | |
working_dir: /var/www | |
volumes: | |
- ./:/var/www | |
ports: | |
- 80:80 |
This file contains 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
database: | |
image: mysql:8.0.25 | |
volumes: | |
- dbdata:/var/lib/mysql | |
environment: | |
MYSQL_DATABASE: ${DB_DATABASE} | |
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} | |
MYSQL_PASSWORD: ${DB_PASSWORD} | |
MYSQL_USER: ${DB_USERNAME} | |
ports: |
This file contains 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
volumes: | |
dbdata: |
This file contains 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
mailhog: | |
image: mailhog/mailhog:latest | |
logging: | |
driver: 'none' | |
ports: | |
- 1025:1025 | |
- 8025:8025 |
This file contains 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
pma: | |
image: phpmyadmin:5.1 | |
environment: | |
- PMA_ARBITRARY=1 | |
- PMA_HOST=${DB_HOST} | |
- PMA_USER=${DB_USERNAME} | |
- PMA_PASSWORD=${DB_PASSWORD} | |
- PMA_PORT=${DB_PORT} | |
depends_on: | |
- database |
This file contains 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
server { | |
listen 80; | |
index index.php index.html; | |
root /var/www/public; | |
location / { | |
try_files $uri /index.php?$args; | |
} | |
location ~ \.php$ { |
This file contains 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
version: '3.8' | |
services: | |
# Application | |
app: | |
build: | |
context: . | |
dockerfile: app.dockerfile | |
working_dir: /var/www | |
volumes: |
This file contains 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 php:8.0-fpm | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg-dev \ | |
libpng-dev \ | |
libwebp-dev \ | |
--no-install-recommends \ | |
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ | |
&& docker-php-ext-install pdo_mysql -j$(nproc) gd |
This file contains 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 php:8.0-fpm | |
RUN apt-get update && apt-get install -y \ | |
libmagickwand-dev \ | |
--no-install-recommends \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick \ | |
&& docker-php-ext-install pdo_mysql |
OlderNewer