devwebiut/docker-compose.yml

36 lines
564 B
YAML
Raw Normal View History

2023-05-23 11:19:18 +02:00
version: '3'
services:
web:
build: .
ports:
- 80:80
volumes:
- ./public_html:/var/www/html
depends_on:
- db
links:
- db
db:
image: mariadb:10.8.3
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- db-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:5.2.0
ports:
- 81:80
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=root
- PMA_PASSWORD=root
depends_on:
- db
links:
- db
volumes:
db-data: