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

27 lines
536 B
YAML

services:
web:
build:
context: .
dockerfile: containers/php/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
- ../sfiab_sudbury.sql:/sfiab_sudbury.sql
volumes:
db_data: