version: '3' services: ## usage: docker-compose run --rm serve ## : docker-compose up (-d) serve serve: command: yarn serve image: node:lts ports: - '3000:3000' user: '1000' volumes: - ./:/src working_dir: /src ## usage: docker-compose run --rm install install: command: yarn install image: node:lts user: '1000' volumes: - ./:/src working_dir: /src