jaywick / xyz-blog

Debranded source code for https://jaywick.xyz site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

Install

  • Node 9+
  • Yarn

In your hosts file map xyz-store to localhost

Link your s3 bucket for public folders in FeatureImgUrl transformer

Create mongodb dbs xyz-blog-logging and xyz-blog

Building the images

Build the docker image

docker build -t xyz-web-img .

Running containers

Run the db

docker run --name xyz-store -d mongo

Run the web app

docker run -d --name xyz-web -p 80:80 --link xyz-store xyz-web-img

Deploying

Log in to registry

docker login YOUR_DOCKER_REGISTRY

Build and push image to registry (from workspace)

docker build -t YOUR_DOCKER_REGISTRY/IMAGE_NAME .
docker push YOUR_DOCKER_REGISTRY/IMAGE_NAME

Pull and run image from registry (on deployment environment)

docker run -d --name xyz-web -p 80:80 --link xyz-store YOUR_DOCKER_REGISTRY/IMAGE_NAME

About

Debranded source code for https://jaywick.xyz site

License:MIT License


Languages

Language:TypeScript 84.3%Language:CSS 13.2%Language:JavaScript 2.6%