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
.env |
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
RESTIFY_SEVER_PORT=8080 |
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
const restify = require('restify'); | |
const plugins = require('restify-plugins'); | |
const nodemailer = require('nodemailer'); | |
const ses = require('nodemailer-ses-transport'); | |
require('dotenv').config(); | |
const mailerTransport = nodemailer.createTransport(ses({ | |
accessKeyId: process.env.AWS_ACCESS_KEY_ID, | |
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY |
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
FROM mhart/alpine-node:6 | |
WORKDIR /src | |
ADD . . | |
RUN apk add --no-cache make gcc g++ python | |
RUN npm install | |
EXPOSE 8080 | |
CMD ["node", "index.js"] |
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
#!/bin/bash | |
appname="sum12factor" | |
run() { | |
echo "docker run \ | |
--name=$appname \ | |
-p 8080:8080 \ | |
-d \ | |
--restart=unless-stopped $appname" | |
} |
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
#!/bin/bash | |
appname="sum12factor" | |
port=8080 | |
run() { | |
echo "docker run \ | |
-e DOCKER_INSTANCE=$instance \ | |
-e DOCKER_PORT=$port \ | |
--name=$appname$instance \ | |
-p $port:8080 \ |
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
const restify = require('restify'); | |
const plugins = require('restify-plugins'); | |
const nodemailer = require('nodemailer'); | |
const ses = require('nodemailer-ses-transport'); | |
const winston = require('winston'); | |
require('winston-loggly-bulk'); | |
require('dotenv').config(); | |
winston.add(winston.transports.Loggly, { |
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
aws ec2 modify-instance-attribute --instance-id i-xxxxxxxxxxxxxxx --block-device-mappings "[{\"DeviceName\": \"/dev/sda1\",\"Ebs\":{\"DeleteOnTermination\":false}}]" |
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
sudo mkdir -p /var/lib/openproject | |
docker run -d -p 8881:80 \ | |
-e SECRET_KEY_BASE=s \ | |
-e EMAIL_DELIVERY_METHOD=smtp \ | |
-e SMTP_ADDRESS=smtp.sendgrid.net \ | |
-e SMTP_PORT=587 \ | |
-e SMTP_DOMAIN=smtp.gmail.com \ | |
-e SMTP_AUTHENTICATION=plain \ | |
-e SMTP_ENABLE_STARTTLS_AUTO=true \ | |
-e [email protected] \ |
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
sudo graylog-ctl set-email-config smtp.gmail.com --port=587 [email protected] --password=1! [email protected] --no-ssl |