From 8c6d117e72efcc01c202dce9ab98fe487ec93d94 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 23 May 2019 13:25:45 +0200 Subject: [PATCH] docker dev environment --- docker-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9bad1ea --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file