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
branches: | |
- [master, develop] | |
pipeline: | |
build: | |
image: docker:latest | |
environment: | |
- REGISTRY_USERNAME=${REGISTRY_USERNAME} | |
- REGISTRY_PASSWORD=${REGISTRY_PASSWORD} | |
- NODE_ENV=production |
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 registry (distribution) + Drone 0.5 | |
version: '2' | |
services: | |
registry-srv: | |
restart: always | |
image: registry:2 | |
environment: | |
- VIRTUAL_HOST=registry.codexia.io | |
- VIRTUAL_PORT=5000 |
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
client_max_body_size 1g; |
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
version: '2' | |
services: | |
db: | |
image: mariadb | |
volumes: | |
- /storage/example/db:/var/lib/mysql | |
restart: always | |
env_file: .env | |
environment: |
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
version: '2' | |
services: | |
nginx-proxy: | |
ports: | |
- "443:443" | |
volumes: | |
- /storage/nginx-proxy/certs:/etc/nginx/certs | |
- /storage/nginx-proxy/vhost.d:/etc/nginx/vhost.d:ro | |
networks: |
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
'use strict'; | |
let dbm; | |
let type; | |
let seed; | |
const Promise = require('bluebird'); | |
/* logger is a simple logging module that can be found here | |
https://gist.github.com/mbenedettini/a93ad95cbc352a3afd9ad7193af563d7 */ | |
const logger = require('logger'); |
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
'use strict'; | |
const clc = require('cli-color'); | |
module.exports = require('tracer').console({ | |
filters: { | |
log: clc.black.bgWhite, | |
trace: clc.magenta, | |
debug: clc.cyan, | |
info: clc.green, |
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 loopback = require('loopback'); | |
const boot = require('loopback-boot'); | |
const logger = require('logger'); | |
const app = loopback(); | |
// This module resides in /lib so we should boot project from ../server | |
boot(app, __dirname + '/../server'); | |
logger.debug('Loopback initialized'); |
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
{ | |
"defaultEnv": {"ENV": "NODE_ENV"}, | |
"development": { | |
"driver": "pg", | |
"user": { | |
"ENV": "DB_USERNAME" | |
}, | |
"password": { | |
"ENV": "DB_PASSWORD" | |
}, |
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
;;; packages.el --- column-marker layer packages file for Spacemacs. | |
;; | |
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors | |
;; | |
;; Author: Mariano Benedettini <[email protected]> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;;; License: GPLv3 |