mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 17:09:39 +01:00
Refactoring
This commit is contained in:
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
- ./default.conf:/etc/nginx/conf.d/default.conf
|
||||
networks:
|
||||
- default
|
||||
Reference in New Issue
Block a user