Skip to content

Instantly share code, notes, and snippets.

@dberardo-com
dberardo-com / supervisor
Last active February 14, 2025 11:51 — forked from puhitaku/supervisor
Supervisor init script for OpenWrt (procd).
#!/bin/sh /etc/rc.common
START=99
STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
PIDFILE=/var/run/supervisord.pid
LOCKFILE=/var/run/supervisord_up.lock
LOCKFILE_DOWN=/var/run/supervisord_down.lock
SUPERVISORCTL_BIN=$(which supervisorctl)
import { IntrospectAndCompose, RemoteGraphQLDataSource, ServiceDefinition } from '@apollo/gateway';
import { composeServices } from '@apollo/composition';
import { Service, loadServicesFromRemoteEndpoint } from '@apollo/gateway/dist/supergraphManagers/IntrospectAndCompose/loadServicesFromRemoteEndpoint';
import { Logger } from '@nestjs/common';
import fetch from 'node-fetch';
// https://github.com/apollographql/federation/issues/355
// @ts-ignore
export class CustomIntrospectAndCompose extends IntrospectAndCompose {
version: "3.7"
x-default-opts: &default-opts
logging:
options:
max-size: "1m"
secrets:
pub_key:
external: true
version: "3.7"
volumes:
keys-server:
keys-client:
services:
ssh-server:
image: linuxserver/openssh-server
container_name: server
version: "3.7"
volumes:
keys-server:
keys-client:
# sshfs-volume-mount-example:
# driver: vieux/sshfs:latest
# driver_opts:
# reconnect: ""
# ServerAliveInterval: 15