Compare commits
4 Commits
master
...
Fluffy-gun
Author | SHA1 | Date |
---|---|---|
Fluffy9 | ac8ae5e8ba | |
Fluffy9 | 4826c8132e | |
Fluffy9 | 5f567ec174 | |
Fluffy9 | 7e5edeea03 |
5
dc
5
dc
|
@ -26,6 +26,11 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
|
||||||
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml"
|
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# gundb module - alias "g"
|
||||||
|
if [[ ${PORTAL_MODULES:i-1:1} == "g" ]]; then
|
||||||
|
COMPOSE_FILES+=" -f docker-compose.gundb.yml"
|
||||||
|
fi
|
||||||
|
|
||||||
# jaeger module - alias "j"
|
# jaeger module - alias "j"
|
||||||
if [[ ${PORTAL_MODULES:i-1:1} == "j" ]]; then
|
if [[ ${PORTAL_MODULES:i-1:1} == "j" ]]; then
|
||||||
COMPOSE_FILES+=" -f docker-compose.jaeger.yml"
|
COMPOSE_FILES+=" -f docker-compose.jaeger.yml"
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
x-logging: &default-logging
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
gun:
|
||||||
|
image: skynetlabs/gundb-relay
|
||||||
|
container_name: gundb-relay
|
||||||
|
restart: unless-stopped
|
||||||
|
logging: *default-logging
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- PORTAL=http://${SERVER_DOMAIN}
|
||||||
|
expose:
|
||||||
|
- "8765:8765"
|
||||||
|
networks:
|
||||||
|
shared:
|
||||||
|
ipv4_address: 10.10.10.163
|
|
@ -164,6 +164,15 @@ location /skynet/restore {
|
||||||
proxy_pass http://sia:9980;
|
proxy_pass http://sia:9980;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /gundb {
|
||||||
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
|
||||||
|
proxy_pass http://10.10.10.163:8765/gun;
|
||||||
|
}
|
||||||
|
|
||||||
location /skynet/registry/subscription {
|
location /skynet/registry/subscription {
|
||||||
include /etc/nginx/conf.d/include/cors;
|
include /etc/nginx/conf.d/include/cors;
|
||||||
|
|
||||||
|
|
Reference in New Issue