2022-08-24 23:05:43 +01:00
|
|
|
# Container Director
|
2022-08-24 22:41:31 +01:00
|
|
|
|
2022-08-24 23:05:43 +01:00
|
|
|
[![Build Status](https://drone.jacknet.io/api/badges/jackhadrill/container-director/status.svg)](https://drone.jacknet.io/jackhadrill/container-director)
|
|
|
|
|
|
|
|
A tool to proxy an HTTP backend, and failover to a "container spawner" if the backend does not exist.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```yml
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
...
|
|
|
|
container-director:
|
|
|
|
image: git.jacknet.io/jackhadrill/container-director:latest
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
LISTEN_PORT: 80
|
|
|
|
CONTAINER_PREFIX: "container"
|
2022-08-24 23:26:20 +01:00
|
|
|
CONTAINER_PORT: 80
|
2022-08-24 23:05:43 +01:00
|
|
|
SPAWNER_HOST: "spawner"
|
|
|
|
SPANWER_PORT: 80
|
|
|
|
...
|
|
|
|
```
|