Skip to content

Commit

Permalink
#1 app (php) docker
Browse files Browse the repository at this point in the history
  • Loading branch information
skoro committed Sep 7, 2024
1 parent 98d8cd5 commit 8b9b4cb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
version: '3'

services:
app:
build:
context: ./docker/php
volumes:
- .:/var/www
depends_on:
- database
networks:
- mirspay
###> doctrine/doctrine-bundle ###
database:
image: 'mysql:8.0'
Expand Down
15 changes: 15 additions & 0 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM php:8.3-fpm

RUN apt-get update && apt-get install -y --no-install-recommends \
unzip \
&& rm -rf /var/lib/apt/lists/*

RUN docker-php-ext-install pdo_mysql opcache bcmath

# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
ENV COMPOSER_ALLOW_SUPERUSER=1

COPY --from=composer /usr/bin/composer /usr/local/bin/composer

COPY . /var/www
WORKDIR /var/www

0 comments on commit 8b9b4cb

Please sign in to comment.