From 65b00e47ed97b386602d04e5521c8197e6db7c2b Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 6 Jan 2020 11:08:40 +0100
Subject: [PATCH] Readd traefik code (commented out)
---
docker-compose.yml | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 1de11503..5701db5d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,6 +1,18 @@
version: '3'
services:
+ # traefik:
+ # command:
+ # - "--api.insecure=true"
+ # - "--providers.docker=true"
+ # - "--providers.docker.exposedbydefault=false"
+ # - "--entrypoints.nopaque.address=:5000"
+ # image: traefik:2.0
+ # ports:
+ # - 5000:5000
+ # - 9090:8080
+ # volumes:
+ # - /var/run/docker.sock:/var/run/docker.sock:ro
web:
depends_on:
- db
@@ -9,9 +21,18 @@ services:
placement:
constraints:
- node.role == manager
+ env_file: nopaque.env
+ # labels:
+ # - "traefik.enable=true"
+ # - "traefik.http.routers.nopaque.entrypoints=nopaque"
+ # - "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
+ # # Use sticky sessions for load balancing
+ # # Socket.IO is not compatible with cookie sticky sessions which are the
+ # # only available option in traefik
+ # - "traefik.http.services.web-opaque.loadbalancer.sticky=true"
+ # - "traefik.http.services.web-opaque.loadbalancer.sticky.cookie.httpOnly=true"
ports:
- "5000:5000"
- env_file: nopaque.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
volumes:
- /mnt/nopaque:/mnt/nopaque