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