Skip to content

Instantly share code, notes, and snippets.

@yurifrl
Created December 12, 2016 23:10
Show Gist options
  • Save yurifrl/978cc11283dc6506965831193b75a7c4 to your computer and use it in GitHub Desktop.
Save yurifrl/978cc11283dc6506965831193b75a7c4 to your computer and use it in GitHub Desktop.
Docker and Docker Compose examples
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
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