forked from gbaranski/wheretopark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
159 lines (148 loc) · 4.8 KB
/
docker-compose.dev.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3.8"
services:
traefik:
container_name: traefik
image: traefik:v3.0
command: --api.insecure=true --providers.docker
restart: unless-stopped
ports:
# The HTTP port
- "80:80"
- "1234:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.http.middlewares.strip1.stripprefixregex.regex=^\\/[^\\/]+"
- "traefik.http.middlewares.strip2.stripprefixregex.regex=^\\/[^\\/]+\\/[^\\/]+"
- "traefik.http.middlewares.strip3.stripprefixregex.regex=^\\/[^\\/]+\\/[^\\/]+\\/[^\\/]+"
- "traefik.http.middlewares.allowCORS.headers.accesscontrolallowmethods=GET"
- "traefik.http.middlewares.allowCORS.headers.accesscontrolallowheaders=*"
- "traefik.http.middlewares.allowCORS.headers.accesscontrolalloworiginlist=*"
- "traefik.http.middlewares.allowCORS.headers.accesscontrolmaxage=600"
config:
container_name: wheretopark_config
image: nginx:alpine
restart: unless-stopped
volumes:
- ./providers.dev.json:/usr/share/nginx/html/providers
ports:
- "9000:80"
labels:
- "traefik.http.middlewares.content-type-json.headers.customresponseheaders.Content-Type=application/json"
- "traefik.http.middlewares.redirect-new-config.replacepathregex.regex=/v1/providers"
- "traefik.http.middlewares.redirect-new-config.replacepathregex.replacement=/v1/config/providers"
- "traefik.http.routers.config.rule=PathPrefix(`/v1/config`) || Path(`/v1/providers`)"
- "traefik.http.routers.config.middlewares=redirect-new-config,strip2,content-type-json,allowCORS"
influxer:
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/influxer/Dockerfile
environment:
LOG_LEVEL: debug
SERVER_URL: "http://config:9000"
INFLUXDB_TOKEN: lj3YEMcRfKvtxM6mAkfdk8fkR5wgPt5ZB0KBhOtPOGDE0ZE_1V8jrv8LPMU1PMj_CjqHM-9QnnYb0j52s7iTeA==
cctv:
container_name: wheretopark_cctv
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/cctv/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
CCTV_MODEL_PATH: /opt/wheretopark/model.onnx
volumes:
- $HOME/.local/share/wheretopark:/opt/wheretopark
ports:
- "9001:8080"
labels:
- "traefik.http.routers.cctv.rule=PathPrefix(`/v1/provider/cctv`)"
- "traefik.http.routers.cctv.middlewares=strip3,allowCORS"
gdansk:
container_name: wheretopark_gdansk
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/gdansk/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9002:8080"
labels:
- "traefik.http.routers.gdansk.rule=PathPrefix(`/v1/provider/gdansk`)"
- "traefik.http.routers.gdansk.middlewares=strip3,allowCORS"
gdynia:
container_name: wheretopark_gdynia
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/gdynia/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9003:8080"
labels:
- "traefik.http.routers.gdynia.rule=PathPrefix(`/v1/provider/gdynia`)"
- "traefik.http.routers.gdynia.middlewares=strip3,allowCORS"
glasgow:
container_name: wheretopark_glasgow
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/glasgow/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9004:8080"
labels:
- "traefik.http.routers.glasgow.rule=PathPrefix(`/v1/provider/glasgow`)"
- "traefik.http.routers.glasgow.middlewares=strip3,allowCORS"
lacity:
container_name: wheretopark_lacity
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/lacity/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9005:8080"
labels:
- "traefik.http.routers.lacity.rule=PathPrefix(`/v1/provider/lacity`)"
- "traefik.http.routers.lacity.middlewares=strip3,allowCORS"
poznan:
container_name: wheretopark_poznan
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/poznan/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9006:8080"
labels:
- "traefik.http.routers.poznan.rule=PathPrefix(`/v1/provider/poznan`)"
- "traefik.http.routers.poznan.middlewares=strip3,allowCORS"
warsaw:
container_name: wheretopark_warsaw
restart: unless-stopped
build:
context: .
dockerfile: ./cmd/warsaw/Dockerfile
environment:
PORT: 8080
LOG_LEVEL: trace
ports:
- "9007:8080"
labels:
- "traefik.http.routers.warsaw.rule=PathPrefix(`/v1/provider/warsaw`)"
- "traefik.http.routers.warsaw.middlewares=strip3,allowCORS"