Déplacement des fichiers docker-compose dans un sous-répertoire.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
|
||||
server-php:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
FRANKENPHP_IMAGE: ${FRANKENPHP_VERSION}
|
||||
dockerfile: ${PWD}/docker/Dockerfile.frankenphp
|
||||
|
||||
environment:
|
||||
FRANKENPHP_ROOT_PATH: ${FRANKENPHP_ROOT_PATH}
|
||||
# Configuration en local
|
||||
VITE_PORT: ${VITE_PORT}
|
||||
|
||||
volumes:
|
||||
- ${PWD}/www:/app
|
||||
- ${PWD}/host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
|
||||
- ${PWD}/host/php/conf/${OPCACHE_CONFIG_FILE:-opcache.default.ini}:/usr/local/etc/php/conf.d/opcache.ini
|
||||
- ${PWD}/upload:/app/public/upload
|
||||
|
||||
user: "${UID:-1000}:${GID:-1000}"
|
||||
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "curl -s http://localhost/server-php-test.php || exit 1" ]
|
||||
interval: 30s
|
||||
timeout: 1s
|
||||
retries: 10
|
||||
start_period: 1s
|
||||
Reference in New Issue
Block a user