Skip to content

Commit

Permalink
Middleware Configuration (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Drew Miley <drew.miley@newcastle.ac.uk>
  • Loading branch information
jawrainey and Drew Miley authored Oct 30, 2020
1 parent 0925f19 commit ddac9b8
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions instances/middleware/.consumer.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INVENTORY_BASE_URL=
INVENTORY_TOKEN=
MODULE_NAME=consumer.main
VARIABLE_NAME=consumer
LOG_LEVEL=INFO
SUPPORT_BASE_URL=
SUPPORT_TOKEN=
32 changes: 32 additions & 0 deletions instances/middleware/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.8'

networks:
web:
external: true

services:
consumer_live:
image: ideafast/middleware:0.1.0
networks:
- web
container_name: consumer_live
env_file:
- .consumer.live.env
labels:
- "traefik.enable=true"
- "traefik.http.routers.consumer_live.rule=Host(`api.wp3.ideafast.eu`)"
- "traefik.http.routers.consumer_live.entrypoints=websecure"
- "traefik.http.routers.consumer_live.tls.certresolver=leresolver"

consumer_dev:
image: ideafast/middleware:0.1.0
networks:
- web
container_name: consumer_dev
env_file:
- .consumer.dev.env
labels:
- "traefik.enable=true"
- "traefik.http.routers.consumer_dev.rule=Host(`dev.api.wp3.ideafast.eu`)"
- "traefik.http.routers.consumer_dev.entrypoints=websecure"
- "traefik.http.routers.consumer_dev.tls.certresolver=leresolver"

0 comments on commit ddac9b8

Please sign in to comment.