37 lines
606 B
YAML
37 lines
606 B
YAML
|
version: "3.7"
|
||
|
services:
|
||
|
|
||
|
web-server:
|
||
|
build:
|
||
|
dockerfile: ./Dockerfile
|
||
|
context: .
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- "./html/:/var/www/html/"
|
||
|
ports:
|
||
|
- "8080:80"
|
||
|
|
||
|
mysql-server:
|
||
|
image: mysql:8.0.19
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: secret
|
||
|
volumes:
|
||
|
- mysql-data:/var/lib/mysql
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
|
||
|
phpmyadmin:
|
||
|
image: phpmyadmin/phpmyadmin:5.0.1
|
||
|
restart: always
|
||
|
environment:
|
||
|
PMA_HOST: mysql-server
|
||
|
PMA_USER: root
|
||
|
PMA_PASSWORD: secret
|
||
|
ports:
|
||
|
- "5000:80"
|
||
|
|
||
|
volumes:
|
||
|
mysql-data:
|
||
|
|