Browse Source

new: [traefik,whoami] new charms

postgres
Valentin Lab 6 years ago
parent
commit
085284d68c
  1. 12
      traefik/hooks/web_proxy-relation-joined
  2. 12
      traefik/metadata.yml
  3. 4
      whoami/metadata.yml

12
traefik/hooks/web_proxy-relation-joined

@ -0,0 +1,12 @@
#!/bin/bash
## Should be executable N time in a row with same result.
set -e
config-add "
services:
$MASTER_BASE_CHARM_NAME:
labels:
- 'traefik.frontend.rule=Host:$(relation-get domain)'
"

12
traefik/metadata.yml

@ -0,0 +1,12 @@
description: "Traefik"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
docker-image: traefik
docker-compose:
restart: unless-stopped
command: --api --docker ## Enables the web UI and tells Træfik to listen to docker
ports:
- "80:80" ## The HTTP port
- "8080:8080" ## The Web UI (enabled by --api)
host-resources:
- /var/run/docker.sock ## So that Traefik can listen to the Docker events

4
whoami/metadata.yml

@ -0,0 +1,4 @@
description: "Whoami"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
docker-image: emilevauge/whoami
Loading…
Cancel
Save