Skip to content

Instantly share code, notes, and snippets.

version: '3.6'
services:
graphql-engine:
image: hasura/graphql-engine:pull2395-7ea7f82c
restart: always
environment:
# database url to connect
HASURA_GRAPHQL_DATABASE_URL: "postgres://localhost:5432/hasura"
# enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
#!/bin/bash
# copy the dockerfile into /srv/docker
# if you change this, change the systemd service file to match
# WorkingDirectory=[whatever you have below]
mkdir /etc/hasura
curl -o /etc/hasura/docker-compose.yml https://gist.githubusercontent.com/adowning/7af0273ab3f6bab231df6387be3d355e/raw/c308134bc803fab5e5f176a2e120bae419c68e4f/docker-compose.yaml
curl -o /etc/hasura/Caddyfile https://gist.githubusercontent.com/adowning/19a2918375e7d3383bbf4c28f2fa0336/raw/93d69405cd2fb4f0493ec9c989b8500855d19792/Caddyfile
# copy in systemd unit file and register it so our compose file runs
@adowning
adowning / gist:baecfffb5939714b6caaf178f4f7deb4
Created October 20, 2019 02:51
lxc set ip and put on host network
Creating a new LXD profile for macvlan
Let’s see what LXD profiles are available.
$ lxc profile list
+------------+---------+
| NAME | USED BY |
+------------+---------+
| default | 11 |
+------------+---------+
There is a single profile, called default, the default profile. It is used by 11 LXD containers on this system.
@adowning
adowning / ubuntu setup
Last active January 27, 2020 12:19 — forked from surajreddy6/ubuntu_install.sh
Setting up dev environment on a fresh install of Ubuntu 18.04 LTS
#/!bin/bash
# update
apt update
# apt -y upgrade
adduser ash
usermod -aG ash
# install package management tools
We couldn’t find that file to show.
@adowning
adowning / ubuntu_1606_install_docker.bash
Last active May 18, 2018 15:40 — forked from alvin2ye/ubuntu_1606_install_docker.bash
ubuntu 16.04 install docker & docker-compose
#!/bin/bash
# Run this as root
# Configure docker repo
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
var params = {
LanguageCode: en-US | es-US, /* required */
Media: { /* required */
MediaFileUri: 'STRING_VALUE'
},
MediaFormat: mp3 | mp4 | wav | flac, /* required */
TranscriptionJobName: 'STRING_VALUE', /* required */
MediaSampleRateHertz: 0,
Settings: {
MaxSpeakerLabels: 0,
unite configure --packageName=opol5 --profile=VueJavaScript --unitTestRunner=None --e2eTestRunner=None --cssPre=Stylus --cssPost=None --cssLinter=Stylint --documenter=None --title="Andrews Admin App" --shortName=AAA --description=app --keywords=none --organization=Andrews --copyright=9929 --webSite=www.n.n --namespace=com.andrews.blah --author="a dow" --authorEmail=ash@sadf.com --authorWebSite=sadf.com --outputDirectory=/dist
docker run -t -i --net="bridge" -p 1883:1883/tcp -p 9001:9001 -v /mnt/cache/app_config/mqtt/:/config spants/mqtt
docker run -d -p 9000:9000 --restart always --name=portainer -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer --no-auth