-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (36 loc) · 1.56 KB
/
docker-compose.yml
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
version: '3'
services:
traefik:
image: traefik:v2.9
restart: always
command:
- --accesslog
- --api.insecure=true
- --providers.docker
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=0.0.0.0:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:80"
- "8080:8080"
t-res_deezy_reldisamb-wpubl-wmtops:
image: t-res_deezy_reldisamb-wpubl-wmtops_image:latest
restart: always
expose:
- 80
volumes:
- ${HOME}/T-Res/resources/:/app/resources/
- ${HOME}/T-Res/geoparser/:/app/geoparser/
- ${HOME}/T-Res/utils/:/app/utils/
- /${HOME}/T-Res/preprocessing/:/app/preprocessing/
- ${HOME}/T-Res/experiments/:/app/experiments/
- ${HOME}/nltk_data:/root/nltk_data/
labels:
- traefik.enable=true
- traefik.http.services.t-res_deezy_reldisamb-wpubl-wmtops.loadbalancer.server.port=80
- traefik.http.routers.t-res_deezy_reldisamb-wpubl-wmtops_router.service=t-res_deezy_reldisamb-wpubl-wmtops
- traefik.http.routers.t-res_deezy_reldisamb-wpubl-wmtops_router.rule=Host(`${HOST_URL}`, `0.0.0.0`) && PathPrefix(`/v2/t-res_deezy_reldisamb-wpubl-wmtops`)
- "traefik.http.middlewares.test-stripprefix-reldisamb-wpubl-wmtops.stripprefix.prefixes=/v2/t-res_deezy_reldisamb-wpubl-wmtops"
- traefik.http.routers.t-res_deezy_reldisamb-wpubl-wmtops_router.middlewares=test-stripprefix-reldisamb-wpubl-wmtops
command: ["poetry", "run", "uvicorn", "app:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]