Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
php:
# image: 'php:7.2-fpm'
# Latest stable at last update: 'php:8.5.0-fpm-alpine'
build:
context: ./docker
dockerfile: php.Dockerfile
Expand All @@ -12,7 +12,9 @@ services:
- mariadb

nginx:
image: nginx:latest
# Latest stable at last update. You can also use nginx:latest to auto-update,
# or nginx:latest-alpine to auto-update with a smaller image size (but no bash).
image: nginx:1.29.4-alpine
container_name: ${APP_NAME:?err}-nginx
ports:
- '80:80'
Expand All @@ -24,10 +26,11 @@ services:
- './config/nginx:/etc/nginx/conf.d'

mariadb:
image: mariadb:10.3.9
# Latest LTS at last update. You can also use mariadb:lts to auto-update.
image: mariadb:11.8.5
container_name: ${APP_NAME:?err}-mariadb
restart: 'on-failure'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
volumes:
- ${PWD}
- './mysql:/var/lib/mysql'
10 changes: 0 additions & 10 deletions docker/php.Dockerfile

This file was deleted.

2 changes: 2 additions & 0 deletions mysql/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
17 changes: 17 additions & 0 deletions php-docker/php.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Latest stable at last update. You can also use php:fpm to auto-update,
# or php:fpm-alpine to auto-update with a smaller image size (but no bash).
FROM php:8.5.0-fpm-alpine

# Install git and zip
RUN apt-get update && \
apt-get install -y git zip unzip

# PIE is used for installing extensions. Composer is used for dependency management.
RUN curl --silent --show-error https://github.com/php/pie/releases/download/1.3.2/pie.phar | php && \
mv pie.phar /usr/local/bin/pie

RUN curl --silent --show-error https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer

# Uncomment to have mysqli extension installed and enabled
# RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli