ItsEcholot / ContainerNursery

Puts Docker Containers to sleep and wakes them back up when they're needed
MIT License
94 stars 6 forks source link

Multiple domain for same container #31

Closed JamesDAdams closed 2 years ago

JamesDAdams commented 2 years ago

Hi,

that would be really good to config multiple domain ex: (i have my internet domain and my local domaine)

Like this :

ItsEcholot commented 2 years ago

Good idea, I implemented a first version of this in the dev image tag: docker pull ghcr.io/itsecholot/containernursery:dev

Please try it out and report any bugs you find

ItsEcholot commented 2 years ago

To add multiple domains use the YAML syntax for arrays, for example:

proxyListeningPort: 80
proxyHosts:
  - domain: 
      - dev.domain.com
      - dev2.domain.com
    containerName:
      - WikiJS
    proxyHost: localhost
    proxyPort: 5800
    timeoutSeconds: 10
    stopOnTimeoutIfCpuUsageBelow: 50
JamesDAdams commented 2 years ago

Thanks you, love your soft !