Created
December 12, 2016 23:10
-
-
Save yurifrl/978cc11283dc6506965831193b75a7c4 to your computer and use it in GitHub Desktop.
Docker and Docker Compose examples
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
version: '2' | |
services: | |
web: | |
image: yurifl/node | |
command: npm run dev | |
working_dir: /app | |
ports: | |
- 8080:8080 | |
- 9876:9876 | |
volumes: | |
- ./:/app | |
- node_modules:/app/node_modules | |
volumes: | |
node_modules: | |
external: true |
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
version: '2' | |
services: | |
web: | |
image: yurifl/node | |
command: npm run dev | |
working_dir: /app | |
ports: | |
- 8080:8080 | |
- 9876:9876 | |
volumes: | |
- ./:/app | |
- node_modules:/app/node_modules | |
test: | |
image: yurifl/node | |
command: npm test | |
working_dir: /app | |
ports: | |
- 8080:8080 | |
- 9876:9876 | |
volumes: | |
- ./:/app | |
- node_modules:/app/node_modules | |
coverage: | |
image: python:alpine | |
ports: | |
- 8081:80 | |
working_dir: /app | |
command: python3 -m http.server 80 | |
volumes: | |
- ./test/unit/coverage/lcov-report/:/app | |
volumes: | |
node_modules: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment