add traefik, first attempt

This commit is contained in:
Patrick Jentsch 2019-12-05 15:37:06 +01:00
parent 19651433cd
commit ddeee1fd49

View File

@ -1,7 +1,25 @@
version: '3' version: '3'
services: 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: web:
ports:
- "5000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nopaque.entrypoints=nopaque"
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
depends_on: depends_on:
- db - db
- redis - redis
@ -9,8 +27,6 @@ services:
- db.env - db.env
- web.env - web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque:development
ports:
- 5000:5000
volumes: volumes:
- /mnt/nopaque:/mnt/nopaque - /mnt/nopaque:/mnt/nopaque
- ./app:/home/nopaque/app - ./app:/home/nopaque/app