Skip to content

Commit

Permalink
Add docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Oct 27, 2024
1 parent bcee955 commit 7f40ce1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
php-fpm:
build:
context: ./
dockerfile: ./Dockerfile
entrypoint: [ '/app/docker-entrypoint.sh' ]
volumes:
- .:/app
10 changes: 10 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

echo "Start PHP image"

# Define of php path
PHP_FPM=$(which php-fpm)

${PHP_FPM} --nodaemonize

0 comments on commit 7f40ce1

Please sign in to comment.