31 lines
567 B
YAML
31 lines
567 B
YAML
|
version: '3.2'
|
||
|
services:
|
||
|
php:
|
||
|
build:
|
||
|
context: ./
|
||
|
dockerfile: docker/Dockerfile-fpm
|
||
|
volumes:
|
||
|
- ./:/app
|
||
|
links:
|
||
|
- mariadb
|
||
|
nginx:
|
||
|
build:
|
||
|
context: ./
|
||
|
dockerfile: docker/Dockerfile-nginx
|
||
|
volumes:
|
||
|
- ./:/app
|
||
|
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
|
||
|
ports:
|
||
|
- 8083:80
|
||
|
links:
|
||
|
- php
|
||
|
mariadb:
|
||
|
image: mariadb:10.4.4
|
||
|
ports:
|
||
|
- 3306:3306
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: example
|
||
|
MYSQL_DATABASE: dev
|
||
|
MYSQL_USER: dev
|
||
|
MYSQL_PASSWORD: dev
|