Skip to content

Instantly share code, notes, and snippets.

@m2scared
m2scared / README.md
Created February 3, 2025 02:32 — forked from r0l1/README.md
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
@m2scared
m2scared / README.md
Created February 3, 2025 02:32 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@m2scared
m2scared / k3d-keycloak.md
Created August 21, 2023 23:55 — forked from rafi/k3d-keycloak.md
Keycloak and oauth2-proxy using k3d & ngrok:

K3d and Keycloak

Prerequisites

Ensure docker, k3d and ngrok are installed.

brew update
brew install --cask docker ngrok
brew install k3d
@m2scared
m2scared / k3d-istio.md
Created August 16, 2023 11:29 — forked from rafi/k3d-istio.md
K3d and Istio (Service Mesh - Governing the data plane)

K3d and Istio

Prerequisites

Ensure docker, k3d and istioctl installed.

brew update
brew install --cask docker
brew install k3d istioctl
@m2scared
m2scared / aws-sam-automatic-rollback-demo.md
Created March 22, 2023 05:27 — forked from alexcasalboni/aws-sam-automatic-rollback-demo.md
AWS SAM Demo - Automatic Rollback for AWS Lambda with AWS CodeDeploy

How to Build and Deploy Serverless Apps [AWS Summit]

This demo was presented at the AWS Summit @ Cape Town on Jul 12th.

You can find the slides here.

What's included in this Gist?

  • index.js: The node.js code used for AWS Lambda
  • sam_template.yaml: The AWS SAM template in YAML format (i.e. CloudFormation)
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
#include "wpa2_enterprise.h"
#include "c_types.h"
}
// SSID to connect to
char ssid[] = "TEST_KRA";