science-ation/.devcontainer/docker-compose.yml
2025-01-06 16:46:44 +00:00

26 lines
473 B
YAML

services:
web:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./sfiab:/var/www/html/sfiab:rw
ports:
- 8085:80
depends_on:
- db
db:
image: mariadb:latest
command: --sql-mode=""
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: sfiab
MYSQL_USER: sfiab
MYSQL_PASSWORD: ScienceFair123!
ports:
- 3306:3306
volumes:
- db_data:/var/lib/mysql
volumes:
db_data: