Last active
January 28, 2019 23:19
-
-
Save mikolajpe/eb7fd0f7ef11b7e2f12fbcf2cdff883f to your computer and use it in GitHub Desktop.
host os agnostic, docker-compose example to run node image interactively with one command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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