version: '3'
services:
webapp:
build:
context: ./
dockerfile: Dockerfile-web
volumes:
- ./:/var/www
ports:
- 8000:80
app:
dockerfile: Dockerfile-app
mysql:
image: mysql:5.7
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: oauth
MYSQL_USER: oauth
MYSQL_PASSWORD: oauth