From ddac9b8c834229e0647585a3bb7d7c789b1e19a2 Mon Sep 17 00:00:00 2001 From: Jay Rainey Date: Fri, 30 Oct 2020 14:32:51 +0000 Subject: [PATCH] Middleware Configuration (#8) Co-authored-by: Drew Miley --- instances/middleware/.consumer.env.example | 7 +++++ instances/middleware/docker-compose.yml | 32 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 instances/middleware/.consumer.env.example create mode 100644 instances/middleware/docker-compose.yml diff --git a/instances/middleware/.consumer.env.example b/instances/middleware/.consumer.env.example new file mode 100644 index 0000000..8333676 --- /dev/null +++ b/instances/middleware/.consumer.env.example @@ -0,0 +1,7 @@ +INVENTORY_BASE_URL= +INVENTORY_TOKEN= +MODULE_NAME=consumer.main +VARIABLE_NAME=consumer +LOG_LEVEL=INFO +SUPPORT_BASE_URL= +SUPPORT_TOKEN= diff --git a/instances/middleware/docker-compose.yml b/instances/middleware/docker-compose.yml new file mode 100644 index 0000000..bb1f71a --- /dev/null +++ b/instances/middleware/docker-compose.yml @@ -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"