Add a docker-compose.yml file

Defines the services that we'll use while developing Tracks. So far,
this is just a separate database service.
This commit is contained in:
Matt Rogers 2018-04-25 20:10:31 -05:00
parent cde2108129
commit 99ef4af3e5

19
docker-compose.yml Normal file
View file

@ -0,0 +1,19 @@
version: '3'
services:
db:
image: mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: '1'
volumes:
- "db-data:/var/lib/mysql"
web:
build: .
volumes:
- "${VOLUME:-:/app/workdir}"
ports:
- "3000:3000"
depends_on:
- db
volumes:
db-data: