docker dev environment

This commit is contained in:
cupcakearmy 2019-05-23 13:25:45 +02:00
parent cc4495802b
commit 8c6d117e72

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: '3.6'
x-defaults: &default
image: node:12-alpine
restart: always
working_dir: /app
command: npm run dev
services:
api:
<<: *default
volumes:
- ./api:/app
ports:
- 5000:80
www:
<<: *default
volumes:
- ./www:/app
ports:
- 80:80