From 996eb57a2f274a41c55f1ede741b3c9f7dbd58c8 Mon Sep 17 00:00:00 2001 From: Jesuloba Egunjobi Date: Sat, 19 Oct 2019 20:30:39 -0700 Subject: [PATCH] chore: removed unnecessary network, switched to using top level volume (#2) --- docker-compose.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d76c091711..0b32f105a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,20 +1,24 @@ -version: '3' -networks: - chapter: +version: '3.7' services: app: image: node:10-alpine command: 'npm run dev' - volumes: - - .:/usr/chapter/ working_dir: /usr/chapter/ + volumes: + - data:/usr/chapter/ ports: - '8000:8000' speccy: image: node:10-alpine command: 'npm run speccy:watch' - volumes: - - .:/usr/chapter/ working_dir: /usr/chapter/ + volumes: + - data:/usr/chapter ports: - '8001:8001' +volumes: + data: + driver_opts: + type: bind + o: bind + device: ${PWD}/