https://docs.docker.com/engine/installation/
Create a custom docker-compose file, example docker-compose.dev.yml, with the following:
version: '2'| #!/bin/bash | |
| date="$(date -I)" | |
| timestamp="$(date +%s)" | |
| origin="/nfs/accessible/postgresql/data/backups" | |
| target="/final/backup/destination/path" | |
| rancherContainer="1s203" | |
| filename="db-$(date +%H).sql.gz" | |
| echo "--------" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Liane Madrid Map</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/leaflet.css" integrity="sha256-LcmP8hlMTofQrGU6W2q3tUnDnDZ1QVraxfMkP060ekM=" crossorigin="anonymous" /> | |
| <style> | |
| html, body, #map { width: 100%; height: 100%; margin: 0; padding: 0; } | |
| </style> | |
| </head> |
| # On backend | |
| app.use('/searchInterests', function(req, res) { | |
| const token = app.get('fbAppToken'); | |
| if(req.query.q) { | |
| app.facebook.api('search', { | |
| type: 'adinterest', | |
| q: req.query.q, | |
| access_token: token, | |
| locale: 'en_US' |
https://docs.docker.com/engine/installation/
Create a custom docker-compose file, example docker-compose.dev.yml, with the following:
version: '2'| const express = require('express'); | |
| const bodyParser = require('body-parser'); | |
| const crypto = require('crypto'); | |
| const app = express(); | |
| // Use json body parser when content is `application/json` type and request headers does not include `x-hub-signature` | |
| app.use(bodyParser.json({ | |
| type: req => req.headers['content-type'] == 'aplication/json' && !req.headers['x-hub-signature'] | |
| })); | |
| // Use raw body parser when headers include `x-hub-signature` |
I hereby claim:
To claim this, I am signing this object:
| border: "no" | |
| scrolling: "yes" |