laravel-helper/compose.yml

37 lines
783 B
YAML

services:
fpm:
hostname: fpm
image: git.shihaam.dev/dockerfiles/php-fpm:latest
volumes:
- ./:/var/www/html/
nginx:
hostname: nginx
image: git.shihaam.dev/dockerfiles/nginx-fpm:latest
volumes_from:
- fpm
ports:
- 9000:80
composer:
hostname: composer
image: composer:latest
volumes:
- ./:/var/www/html/
working_dir: /var/www/html
node:
hostname: node
image: node:18.20.4
volumes:
- ./:/var/www/html/
working_dir: /var/www/html
mysql:
image: mysql:5.7.44
hostname: mysql
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=cusport
- MYSQL_PASSWORD=cusport
- MYSQL_DATABASE=cusport
volumes:
- ./.db:/var/lib/mysql