31 lines
663 B
YAML
31 lines
663 B
YAML
services:
|
|
fpm:
|
|
hostname: fpm
|
|
image: git.shihaam.dev/dockerfiles/php-fpm:8.3
|
|
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:2.7.9
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
working_dir: /var/www/html
|
|
database:
|
|
image: mariadb:lts
|
|
hostname: database
|
|
restart: always
|
|
environment:
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
- MYSQL_USER=cusport
|
|
- MYSQL_PASSWORD=cusport
|
|
- MYSQL_DATABASE=cusport
|
|
volumes:
|
|
- ./.db:/var/lib/mysql
|