30 lines
609 B
YAML
30 lines
609 B
YAML
version: '3.8'
|
|
services:
|
|
php:
|
|
build:
|
|
dockerfile: 'dev/php/Dockerfile'
|
|
volumes:
|
|
- './app:/var/www/slovocast'
|
|
depends_on:
|
|
- mariadb
|
|
nginx:
|
|
image: nginx:latest
|
|
volumes:
|
|
- './app:/var/www/slovocast'
|
|
- './dev/nginx:/etc/nginx/conf.d'
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- php
|
|
mariadb:
|
|
image: mariadb:10.9
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: "P4ssword!"
|
|
MYSQL_DATABASE: "slovocast"
|
|
MYSQL_USER: "slovocast"
|
|
MYSQL_PASSWORD: "slovocast"
|
|
volumes:
|
|
- "slovocast_data:/var/lib/mysql"
|
|
volumes:
|
|
slovocast_data:
|