Skip to content

Commit

Permalink
Update serve configurations for Minio and Python services.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Jun 23, 2024
1 parent 1296dd9 commit 78f9d32
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 6 deletions.
19 changes: 19 additions & 0 deletions config/MINIO_SERVE_CONFIG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"minio.${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/": {
"Proxy": "http://127.0.0.1:9001"
}
}
}
},
"AllowFunnel": {
"minio.${TS_CERT_DOMAIN}:443": false
}
}
19 changes: 19 additions & 0 deletions config/PYTHON_SERVE_CONFIG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"python.${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/": {
"Proxy": "http://127.0.0.1:80"
}
}
}
},
"AllowFunnel": {
"python.${TS_CERT_DOMAIN}:443": false
}
}
File renamed without changes.
19 changes: 19 additions & 0 deletions config/WEAVIATE_SERVE_CONFIG.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"weaviate.${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/": {
"Proxy": "http://127.0.0.1:8080"
}
}
}
},
"AllowFunnel": {
"weaviate.${TS_CERT_DOMAIN}:443": false
}
}
12 changes: 6 additions & 6 deletions docker-compose.minio-weaviate-python.ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ services:
volumes:
- /dev/net/tun:/dev/net/tun
- ./tailscale-minio/state:/var/lib/tailscale
- ./TS_SERVE_CONFIG.json:/TS_SERVE_CONFIG.json:ro
- ./config/MINIO_SERVE_CONFIG.json:/config/MINIO_SERVE_CONFIG.json:ro
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/TS_SERVE_CONFIG.json
- TS_SERVE_CONFIG=/config/MINIO_SERVE_CONFIG.json
- TS_EXTRA_ARGS=--advertise-routes=192.168.0.0/24 --advertise-tags=tag:infra --accept-routes --advertise-exit-node --ssh
cap_add:
- NET_ADMIN
Expand All @@ -35,11 +35,11 @@ services:
volumes:
- /dev/net/tun:/dev/net/tun
- ./tailscale-weaviate/state:/var/lib/tailscale
- ./TS_SERVE_CONFIG.json:/TS_SERVE_CONFIG.json:ro
- ./config/WEAVIATE_SERVE_CONFIG.json:/config/WEAVIATE_SERVE_CONFIG.json:ro
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/TS_SERVE_CONFIG.json
- TS_SERVE_CONFIG=/config/WEAVIATE_SERVE_CONFIG.json
- TS_EXTRA_ARGS=--advertise-routes=192.168.0.0/24 --advertise-tags=tag:infra --accept-routes --advertise-exit-node --ssh
cap_add:
- NET_ADMIN
Expand Down Expand Up @@ -78,11 +78,11 @@ services:
volumes:
- /dev/net/tun:/dev/net/tun
- ./tailscale-python/state:/var/lib/tailscale
- ./TS_SERVE_CONFIG.json:/TS_SERVE_CONFIG.json:ro
- ./config/PYTHON_SERVE_CONFIG.json:/config/PYTHON_SERVE_CONFIG.json:ro
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/TS_SERVE_CONFIG.json
- TS_SERVE_CONFIG=/config/PYTHON_SERVE_CONFIG.json
- TS_EXTRA_ARGS=--advertise-routes=192.168.0.0/24 --advertise-tags=tag:infra --accept-routes --advertise-exit-node --ssh
cap_add:
- NET_ADMIN
Expand Down

0 comments on commit 78f9d32

Please sign in to comment.