From ddeee1fd496eca5662afad6eac1b8020998ee9c1 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Thu, 5 Dec 2019 15:37:06 +0100
Subject: [PATCH] add traefik, first attempt
---
docker-compose.yml | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 034448fd..3ec919e5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,7 +1,25 @@
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:
+ ports:
+ - "5000"
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.nopaque.entrypoints=nopaque"
+ - "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
depends_on:
- db
- redis
@@ -9,8 +27,6 @@ services:
- db.env
- web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
- ports:
- - 5000:5000
volumes:
- /mnt/nopaque:/mnt/nopaque
- ./app:/home/nopaque/app