Compare commits

...
This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.

4 Commits

Author SHA1 Message Date
Fluffy9 ac8ae5e8ba
Docker image to skynetlabs and add portal env 2022-03-18 11:59:41 -04:00
Fluffy9 4826c8132e
Re-add logging options and rename gun to gundb 2022-03-17 11:31:12 -04:00
Fluffy9 5f567ec174
Add gun to nginx 2022-03-17 10:27:05 -04:00
Fluffy9 7e5edeea03
added gundb 2022-03-17 10:03:24 -04:00
3 changed files with 37 additions and 0 deletions

5
dc
View File

@ -26,6 +26,11 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml"
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"
if [[ ${PORTAL_MODULES:i-1:1} == "j" ]]; then
COMPOSE_FILES+=" -f docker-compose.jaeger.yml"

23
docker-compose.gundb.yml Normal file
View File

@ -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

View File

@ -164,6 +164,15 @@ location /skynet/restore {
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 {
include /etc/nginx/conf.d/include/cors;