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
# Docker Meteor | |
FROM node:4.8.1-alpine | |
MAINTAINER Gary Ascuy <gary.ascuy@gmail.com> | |
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \ | |
NODE_ENV=production \ | |
ROOT_URL=http://localhost:3000 \ | |
PORT=3000 | |
WORKDIR /root/app/bundle |
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
# Dockerfile for Meteor App | |
FROM node:4.8.2-alpine | |
MAINTAINER Gary Ascuy <gary.ascuy@gmail.com> | |
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \ | |
NODE_ENV=production \ | |
ROOT_URL=http://localhost:3000 \ | |
PORT=3000 | |
WORKDIR /root/app/bundle |
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
# create meteor build for linux | |
meteor build ../build --server-only --architecture os.linux.x86_64 |
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
# clone source code from github | |
git clone https://github.com/dockercochabamba/todos.git |
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
# clone source code from github | |
git clone https://github.com/dockercochabamba/todos.git |
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
# Dockerfile for Meteor App | |
FROM node:4.8.2-alpine | |
MAINTAINER Gary Ascuy <gary.ascuy@gmail.com> | |
ENV BUILD_PACKAGES="python make gcc g++ git libuv bash curl tar bzip2" \ | |
NODE_ENV=production \ | |
ROOT_URL=http://localhost:3000 \ | |
PORT=3000 | |
WORKDIR /root/app/bundle |
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
# create a docker image from Dockerfile | |
docker build -t garyascuy/todos . | |
# push "garyascuy/todos" image to https://hub.docker.com/ | |
docker push garyascuy/todos |
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
# Start docker service | |
systemctl start docker | |
# Enable docker service to start with OS on reboots | |
systemctl enable docker | |
# Verify docker service | |
systemctl status docker |
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
# pull mongodb image from Docker hub | |
docker pull mongo:3.2 | |
# run mongodb container | |
docker run -d --restart=always \ | |
-v /root/database/:/data/db \ | |
--name mongodb \ | |
mongo:3.2 mongod --smallfiles --nohttpinterface --replSet rs0 | |
# configure replica set, and create oplog user |
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
# puling todos image from public docker hub | |
docker pull meteorjs/todos:latest | |
# run meteor container | |
docker run -d -p 80:3000 --restart=always \ | |
--link mongodb \ | |
-e MONGO_URL=mongodb://mongodb:27017/todos \ | |
-e MONGO_OPLOG_URL=mongodb://oplogger:master@mongodb:27017/local?authSource=admin \ | |
--name=todos \ | |
meteorjs/todos:latest |
OlderNewer