forked from science-ation/science-ation
27 lines
536 B
YAML
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:
|