-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
44 lines (40 loc) · 1.03 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.5"
networks:
narrative:
name: traefik_narrative
services:
traefik:
image: "traefik:v2.1.1"
container_name: "traefik"
command:
- "--log.level=INFO"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--metrics=true"
- "--metrics.prometheus=true"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- narrative
authsvc:
image: "kbase/narrative-traefiker:latest"
hostname: "authsvc"
volumes:
- "./app.py:/app/app.py"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
ports:
- "5000:5000"
environment:
- hostname=localhost
- dock_net=traefik_narrative
labels:
- traefik.enable=true
- traefik.http.routers.authsvc.rule=Host("localhost") && PathPrefix("/narrative")
- traefik.http.routers.authsvc.entrypoints=web
networks:
- narrative