2025-01-06 16:33:07 +00:00
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
2025-01-06 16:46:44 +00:00
|
|
|
dockerfile: Dockerfile
|
2025-01-06 19:40:38 +00:00
|
|
|
volumes:
|
|
|
|
- ../..:/workspaces:cached
|
2025-01-06 16:33:07 +00:00
|
|
|
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:
|