lamp-docker-dev/docker-compose.yml
2023-07-25 09:56:30 +02:00

25 lines
562 B
YAML

services:
php:
build:
context: ./php
dockerfile: ./Dockerfile
ports:
- 80:80
volumes:
- ./www:/var/www/html/
- ./php/php.ini:/usr/local/etc/phps/php.ini
mariadb:
image: mariadb
volumes:
- ./mariadb/data:/var/lib/mysql
- ./mariadb/init.sql:/data/application/init.sql
environment:
MYSQL_ROOT_HOSTS: '%'
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: joomla
MYSQL_USER: dbusr
MYSQL_PASSWORD: root
ports:
- 3306:3306