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}/