27 lines
495 B
YAML
27 lines
495 B
YAML
version: '3.8'
|
|
services:
|
|
nginx:
|
|
image: nginx
|
|
ports:
|
|
- 8081:80
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
- ./app:/var/www/html
|
|
depends_on:
|
|
- php
|
|
restart: unless-stopped
|
|
|
|
composer:
|
|
image: composer
|
|
volumes:
|
|
- ./app:/app
|
|
command: install --no-dev
|
|
|
|
php:
|
|
build:
|
|
context: .
|
|
dockerfile: php.Dockerfile
|
|
volumes:
|
|
- ./app:/var/www/html
|
|
- ./php.ini:/usr/local/etc/php/php.ini
|
|
restart: unless-stopped |