mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 17:09:39 +01:00
@@ -79,14 +79,17 @@ services:
|
|||||||
- default #if you're using networks between containers
|
- default #if you're using networks between containers
|
||||||
#Nginx server
|
#Nginx server
|
||||||
nginx-server:
|
nginx-server:
|
||||||
image: nginx:alpine
|
image: jkaninda/nginx-fpm:alpine
|
||||||
container_name: nginx-server
|
container_name: nginx-server
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/var/www/html
|
- ./:/var/www/html
|
||||||
- ./default.conf:/etc/nginx/conf.d/default.conf
|
environment:
|
||||||
|
- DOCUMENT_ROOT=/var/www/html/public
|
||||||
|
- CLIENT_MAX_BODY_SIZE=20M
|
||||||
|
- PHP_FPM_HOST=php-fpm:9000
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
|
||||||
|
|||||||
@@ -11,13 +11,16 @@ services:
|
|||||||
- default #if you're using networks between containers
|
- default #if you're using networks between containers
|
||||||
#Nginx server
|
#Nginx server
|
||||||
nginx-server:
|
nginx-server:
|
||||||
image: nginx:alpine
|
image: jkaninda/nginx-fpm:alpine
|
||||||
container_name: nginx-server
|
container_name: nginx-server
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- ./laravel:/var/www/html
|
- ./laravel:/var/www/html
|
||||||
- ./example/default.conf:/etc/nginx/conf.d/default.conf
|
environment:
|
||||||
|
- DOCUMENT_ROOT=/var/www/html/public
|
||||||
|
- CLIENT_MAX_BODY_SIZE=20M
|
||||||
|
- PHP_FPM_HOST=php-fpm:9000
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
|||||||
26
example/docker-compose.yml
Normal file
26
example/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
php-fpm:
|
||||||
|
image: jkaninda/laravel-php-fpm:8.1
|
||||||
|
container_name: php-fpm
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
#Project root
|
||||||
|
- ./:/var/www/html
|
||||||
|
networks:
|
||||||
|
- default #if you're using networks between containers
|
||||||
|
#Nginx server
|
||||||
|
nginx-server:
|
||||||
|
image: jkaninda/nginx-fpm:alpine
|
||||||
|
container_name: nginx-server
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
volumes:
|
||||||
|
- ./:/var/www/html
|
||||||
|
environment:
|
||||||
|
- DOCUMENT_ROOT=/var/www/html/public
|
||||||
|
- CLIENT_MAX_BODY_SIZE=20M
|
||||||
|
- PHP_FPM_HOST=php-fpm:9000
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
Reference in New Issue
Block a user