Added docker configuration.

This commit is contained in:
Lewin Probst 2020-12-22 18:42:24 +01:00
parent 410d42e2bb
commit 6e9794fb8c
2 changed files with 55 additions and 0 deletions

26
Docker/docker-compose.yml Normal file
View file

@ -0,0 +1,26 @@
version: "3.7"
services:
web:
image: nginx:latest
container_name: lewp_nginx
depends_on:
- php
volumes:
- ./nginx:/etc/nginx/conf.d/
- ./../:/var/www/html
ports:
- 8080:80
php:
image: php:8-fpm
container_name: lewp_php
volumes:
- ./../:/var/www/html
composer:
image: composer:2.0.8
container_name: lewp_composer
volumes:
- ./../:/app
command: composer install --ignore-platform-reqs