Browse Source

Assign usocial fetcher an IP (#1249)

0.4.14
Luke Childs 3 years ago
committed by GitHub
parent
commit
d5c39dbd0a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/usocial/docker-compose.yml
  2. 2
      scripts/configure
  3. 1
      templates/.env-sample

5
apps/usocial/docker-compose.yml

@ -16,6 +16,9 @@ services:
LND_IP: "${LND_IP}"
LND_GRPC_PORT: ${LND_GRPC_PORT}
LND_DIR: "/lnd"
networks:
default:
ipv4_address: $APP_USOCIAL_IP
fetcher:
depends_on:
- web
@ -28,4 +31,4 @@ services:
USOCIAL_JOB: "FETCH_FEEDS"
networks:
default:
ipv4_address: $APP_USOCIAL_IP
ipv4_address: $APP_USOCIAL_FETCHER_IP

2
scripts/configure

@ -241,6 +241,7 @@ APP_URBIT_PORT="8090"
APP_URBIT_P2P_PORT="34343"
APP_USOCIAL_IP="10.21.21.77"
APP_USOCIAL_PORT="8448"
APP_USOCIAL_FETCHER_IP="10.21.21.78"
APP_TAILSCALE_IP="10.21.21.80"
APP_TAILSCALE_PORT="2100"
@ -484,6 +485,7 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-urbit-p2p-port>/${APP_URBIT_P2P_PORT}/g" "${template}"
sed -i "s/<app-usocial-ip>/${APP_USOCIAL_IP}/g" "${template}"
sed -i "s/<app-usocial-port>/${APP_USOCIAL_PORT}/g" "${template}"
sed -i "s/<app-usocial-fetcher-ip>/${APP_USOCIAL_FETCHER_IP}/g" "${template}"
sed -i "s/<app-tailscale-ip>/${APP_TAILSCALE_IP}/g" "${template}"
sed -i "s/<app-tailscale-port>/${APP_TAILSCALE_PORT}/g" "${template}"
done

1
templates/.env-sample

@ -139,5 +139,6 @@ APP_URBIT_PORT=<app-urbit-port>
APP_URBIT_P2P_PORT=<app-urbit-p2p-port>
APP_USOCIAL_IP=<app-usocial-ip>
APP_USOCIAL_PORT=<app-usocial-port>
APP_USOCIAL_FETCHER_IP=<app-usocial-fetcher-ip>
APP_TAILSCALE_IP=<app-tailscale-ip>
APP_TAILSCALE_PORT=<app-tailscale-port>
Loading…
Cancel
Save