Files
laravel-php-fpm/docker-compose.yml

30 lines
711 B
YAML
Raw Normal View History

2022-09-05 14:41:20 +02:00
version: '3'
services:
php-fpm:
image: jkaninda/laravel-php-fpm:8.3
2022-09-05 14:41:20 +02:00
container_name: php-fpm
restart: unless-stopped
volumes:
#Project root
- ./laravel:/var/www/html
networks:
2023-08-12 08:55:52 +02:00
- web #if you're using networks between containers
2022-09-05 14:41:20 +02:00
#Nginx server
nginx-server:
2022-11-01 09:56:17 +02:00
image: jkaninda/nginx-fpm:alpine
2022-09-05 14:41:20 +02:00
container_name: nginx-server
restart: unless-stopped
ports:
2023-09-12 14:18:22 +02:00
- 80:80
2022-09-05 14:41:20 +02:00
volumes:
- ./laravel:/var/www/html
2022-11-01 09:56:17 +02:00
environment:
- DOCUMENT_ROOT=/var/www/html/public
- CLIENT_MAX_BODY_SIZE=20M
- PHP_FPM_HOST=php-fpm:9000
2022-09-05 14:41:20 +02:00
networks:
2023-08-12 08:55:52 +02:00
- web
networks:
web:
external: false