Skip to content

Instantly share code, notes, and snippets.

View haroonKhan-10p's full-sized avatar
:octocat:
Chillin

Haroon Khan haroonKhan-10p

:octocat:
Chillin
View GitHub Profile
@haroonKhan-10p
haroonKhan-10p / docker-compose.yml
Created May 21, 2018 11:58
setting up lifext with docker-compose
version: '3.4'
services:
lifext_api:
container_name: lifext-api
build:
context: .
dockerfile: Dockerfile
entrypoint:
- "npm"
@haroonKhan-10p
haroonKhan-10p / launch.json
Last active April 18, 2018 09:39
qhoc-parse-server vscode debug settings
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "debug",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
mount docker from a "docker volume"
docker run -it --rm -p 27017:27017 --mount source=qhocbackend_qhoc_mongo,target=/data/db mongo:3.2
@haroonKhan-10p
haroonKhan-10p / default
Created October 18, 2017 12:44
nginx necessary changes for versioning
if ($http_app_version ~ 3(.*)$) {
proxy_pass http://localhost:3000;
}
if ($http_app_version ~ 2(.*)$) {
proxy_pass http://localhost:3333;
}