services: web: build: context: . dockerfile: Dockerfile volumes: - ../..:/workspaces:cached 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: