Giter Site home page Giter Site logo

known's Introduction

known

My deploy setup for Known on AWS.

How To

  1. Deploy ec2 instance
  2. Attach EFS volume at ~/data
  3. Get parameters for reaching RDS database
  4. Install docker, docker-compose on ec2 instance
  5. Move this repo to this instance
  6. scp the env file to this instance
  7. Ensure letsencrypt certs are up to date
  8. Run docker-compose up -d

You can now access the Known instance at 80 and 443 on the machine.

Encryption

Copy fullchain.pem and privkey.pem from /etc/letsencrypt/archive/$DOMAIN/ to ./certs (remove the trailing numbers from the file names). These will be passed into the NGINX container.

TODO: Periodically check validity of certs and re-run certbot if they expire.

Docker + VPC wrinkles

To reach other instances on the VPC (e.g. the database) Docker must be told to use the VPC's DNS server; by default it uses Google's public DNS at 8.8.8.8. Go to the docker options file (for ec2 this is /etc/sysconfig/docker) and change the OPTIONS line to include --dns 172.31.0.2 --dns 8.8.8.8 --dns 8.8.4.4. Amazon VPC DNS servers are usually at the base of the IP range +2 e.g. if the VPC has block 172.31.0.0/16 then it will be at 172.31.0.2.

Amazon Docker Troubleshooting Amazon VPC DNS

known's People

Contributors

pierreozoux avatar tdb-alcorn avatar edrex avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.