Skip to content

Instantly share code, notes, and snippets.

@mikolajprzybysz
Last active January 28, 2019 23:19
Show Gist options
  • Save mikolajprzybysz/eb7fd0f7ef11b7e2f12fbcf2cdff883f to your computer and use it in GitHub Desktop.
Save mikolajprzybysz/eb7fd0f7ef11b7e2f12fbcf2cdff883f to your computer and use it in GitHub Desktop.
host os agnostic, docker-compose example to run node image interactively with one command
# To run interactive mode run
# docker-compose run --rm --entrypoint sh tutorial-app
# in order to run the up run
# docker-compose up
version: '3.7'
services:
tutorial-app:
image: node:11-alpine
ports:
- 80:80
volumes:
- ./:/app
working_dir: /app
stdin_open: true
tty: true
command: node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment