zkt23/z1/docker-compose.yaml
2023-05-04 12:05:02 +02:00

22 lines
392 B
YAML

version: '3'
services:
web:
image: httpd:latest
ports:
- "80:80"
volumes:
- web_data:/var/html/usr/local/apache2/htdocs/
database:
image: mysql:latest
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ass1root
MYSQL_DATABASE: mydb
MYSQL_USER: iban
MYSQL_PASSWORD: ass1
volumes:
web_data:
db_data: