Comments (3)
argh, just finished the second blog post about the "old" hackathon-starter. however, megaboilerplate looks awesome. The dev docker-compose.yml i created still works with the express+mongodb+jade combi.
version: '2'
services:
web:
image: node:6.1
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
command: sh -c 'npm install; npm install -g nodemon ; nodemon -e js,jade app.js'
ports:
- "80:3000"
depends_on:
- mongo
networks:
- all
environment:
MONGODB: "mongodb://mongo:27017/hackathon"
mongo:
image: mongo:3
command: mongod --smallfiles
networks:
- all
networks:
all:
same for the Dockerfile:
FROM node:6.1.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN npm install
CMD [ "node", "app.js" ]
What do you have in mind? Generating only buildfiles regarding the choosed frameworks or docker-compose.yml files too?
btw. in hackathon-starter you switched from MONGODB to MONGODB_URI
cheers,
mike
from megaboilerplate.
Hey Mike, having not used Docker or Docker Compose I have a little difficulty understanding of where these tools fit in the workflow and the difference between Docker and Docker Compose. From the docs:
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application’s services.
But that still doesn't tell me much.
I think I understand the purpose behind Docker - it's to specify all system dependencies like Node.js, MongoDB, PostgreSQL, configure a database, install build tools, and finally run the app. So, with a single command you can start an app without having to install all those prerequisites on your machine. That's Dockerfile
. Something like that could be a checkbox option under Platform or Framework selection.
Now where does Docker Compose fit in this picture?
from megaboilerplate.
Hey @sahat
Docker Compose allows you to specify multiple containers per project (eg. one for database, another for web) Each can have different Docker images fit for purpose, which may connect to different code bases within your project tree, etc.
I'm thinking Docker would be a nice way to support several hosting platforms (DigitalOcean has one-click Docker instances, for example) Would be easy enough to incorporate deployment scripts for each.
Thoughts?
Keep up the great work, I'm excited!
from megaboilerplate.
Related Issues (20)
- web generator
- Web generator site is missing HOT 1
- Angular Password reset is not working
- Mongo vs Heroku
- [Feature Request] API only option HOT 1
- webpack is not watching changes in dev mode
- Plan to implement vue.js version
- problem running the project
- (node:1452) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client HOT 1
- update webpack
- upgrading dependencies
- Hot reload not working, need to run npm run build HOT 1
- Jade + Heroku Internal Server Error
- ReferenceError: fetch is not defined HOT 1
- Deploy Node, Express, React, NPM, Postgres to AWS
- Nothing is appearing
- megaboilerplate.com not working HOT 7
- Demo links not working
- Project HOT 2
- Community version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaboilerplate.