WebStack/docker-compose.yml

36 lines
536 B
YAML

version: '3.5'
name: webstack
# Services
services:
# PHP FPM Service
php:
image: php:seph
container_name: php
build:
dockerfile: php-dockerfile
context: .
volumes:
- 'webdata:/var/www/html'
# depends_on:
# - mariadb
# Nginx Service
nginx:
image: nginx:seph
container_name: nginx
build:
dockerfile: nginx-dockerfile
context: .
links:
- 'php'
volumes:
- 'webdata:/var/www/html'
depends_on:
- php
# Volumes
volumes:
webdata: