maj docker

This commit is contained in:
2026-03-25 23:01:58 +01:00
parent 2214dbe389
commit 0eb73febd7
2 changed files with 35 additions and 9 deletions
+15 -9
View File
@@ -1,16 +1,22 @@
version: '3'
services:
# La partie PHP (ton Dockerfile actuel)
app:
build:
context: .
dockerfile: DOCKERFILE
container_name: laravel_app
build: .
container_name: laravel_php
restart: always
volumes:
- .:/var/www
networks:
- app-network
networks:
app-network:
external: true # Pour qu'il puisse parler à ton MySQL et ton Proxy
# La partie Serveur Web (qui parle à NPM et à PHP)
web:
image: nginx:alpine
container_name: laravel_web
restart: always
ports:
- "8000:80" # C'est ce port 8000 qu'il faudra mettre dans NPM !
volumes:
- .:/var/www
- ./nginx.conf:/etc/nginx/conf.d/default.conf # On va créer ce petit fichier
depends_on:
- app