mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
add traefik, first attempt
This commit is contained in:
parent
19651433cd
commit
ddeee1fd49
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user