Files
laravel-php-fpm/docker-compose.yml
2022-09-05 14:50:49 +02:00

24 lines
604 B
YAML

version: '3'
services:
php-fpm:
image: jkaninda/laravel-php-fpm:latest
container_name: php-fpm
restart: unless-stopped
volumes:
#Project root
- ./laravel:/var/www/html
networks:
- default #if you're using networks between containers
#Nginx server
nginx-server:
image: nginx:alpine
container_name: nginx-server
restart: unless-stopped
ports:
- 80:80
volumes:
- ./laravel:/var/www/html
- ./example/default.conf:/etc/nginx/conf.d/default.conf
networks:
- default