-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 1.34 KB
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
44
45
46
47
version: '3.3'
services:
# ======================================
# -- PROXY
# The proxy is to simulate the EXPLORE's loadbalancing to a subpath
# ======================================
proxy:
image: 'traefik:2.4'
container_name: proxy_gtomo
ports:
- 8080:8080
- 8015:80
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
command:
- '--api.insecure=true'
- '--entryPoints.web.address=:80'
- '--providers.docker=true'
- '--serverstransport.insecureskipverify=true'
- '--api=true'
- '--api.debug=true'
- '--log.level=INFO'
app:
build:
context: ./
dockerfile: ./sda/_local/Dockerfile
# dockerfile: ./sda/_prod/Dockerfile
env_file:
- .env
# ports:
# - 8050:8050
volumes:
- ./sda:/sda
labels:
traefik.enable: 'true'
traefik.http.routers.sda.entrypoints: 'web'
traefik.http.routers.sda.rule: 'HostRegexp(`{host:.+}`) && PathPrefix(`/path_to_sda/`)'
# If strip path is required
# traefik.http.routers.sda.middlewares: 'sda-strip-prefix'
# traefik.http.middlewares.sda-strip-prefix.stripprefix.prefixes: '/path_to_sda/'
traefik.http.services.sda.loadbalancer.server.scheme: 'http'
traefik.http.services.sda.loadbalancer.server.port: '8050'