WebStack/docker-compose.yml

44 lines
749 B
YAML
Raw Normal View History

2024-02-11 13:27:43 +01:00
version: '3.5'
name: webstack
# Services
services:
# PHP FPM Service
php:
container_name: php
build:
dockerfile: php-dockerfile
context: .
volumes:
- 'webdata:/var/www/html'
- './php-logging.conf:/usr/local/etc/php-fpm.d/zz-log.conf'
depends_on:
- mariadb
# Nginx Service
nginx:
container_name: web
image: nginx:latest
links:
- 'php'
volumes:
- 'webdata:/var/www/html'
- './nginx-conf:/etc/nginx/conf.d'
depends_on:
- php
# MariaDB Service
mariadb:
container_name: db
image: mariadb:10.9
environment:
MYSQL_ROOT_PASSWORD: $MYSQLPASS
volumes:
- 'mysqldata:/var/lib/mysql'
# Volumes
volumes:
mysqldata:
webdata: