WebStack/docker-compose.yml

38 lines
566 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: .
ports:
- "$PORT:80"
links:
- 'php'
volumes:
- 'webdata:/var/www/html'
depends_on:
- php
# Volumes
volumes:
webdata: