2024-09-08 05:10:29 +05:00
|
|
|
services:
|
|
|
|
fpm:
|
|
|
|
hostname: fpm
|
2024-09-08 06:12:03 +05:00
|
|
|
image: git.shihaam.dev/dockerfiles/php-fpm:latest
|
2024-09-08 05:10:29 +05:00
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
nginx:
|
|
|
|
hostname: nginx
|
|
|
|
image: git.shihaam.dev/dockerfiles/nginx-fpm:latest
|
|
|
|
volumes_from:
|
|
|
|
- fpm
|
|
|
|
ports:
|
|
|
|
- 9000:80
|
|
|
|
composer:
|
|
|
|
hostname: composer
|
2024-09-08 06:12:03 +05:00
|
|
|
image: composer:latest
|
2024-09-08 05:10:29 +05:00
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
working_dir: /var/www/html
|
2024-09-08 06:12:03 +05:00
|
|
|
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
|
2024-09-08 05:10:29 +05:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
- MYSQL_USER=cusport
|
|
|
|
- MYSQL_PASSWORD=cusport
|
|
|
|
- MYSQL_DATABASE=cusport
|
|
|
|
volumes:
|
|
|
|
- ./.db:/var/lib/mysql
|