This commit is contained in:
AaronDewes 2022-10-28 18:17:17 +00:00
parent d0ccef691f
commit d496f0bfb5
7 changed files with 21 additions and 16 deletions

4
.gitignore vendored
View File

@ -24,7 +24,7 @@ apps
electrs/* electrs/*
fulcrum/* fulcrum/*
nginx/* nginx/*
redis/* i2p/*
docker-compose.override.yml docker-compose.override.yml
# Commit these empty directories # Commit these empty directories
@ -42,7 +42,7 @@ db/citadel-seed/*
!tor/.gitkeep !tor/.gitkeep
!db/.gitkeep !db/.gitkeep
!nginx/.gitkeep !nginx/.gitkeep
!redis/.gitkeep !i2p/.gitkeep
!fulcrum/.gitkeep !fulcrum/.gitkeep
!**/*.license !**/*.license

View File

@ -113,7 +113,6 @@ services:
image: ghcr.io/runcitadel/manager:deno@sha256:fa5bd47fc5a19095a26f1660d8d64fb571d24b476cddf4f6e61ae0e7690caf87 image: ghcr.io/runcitadel/manager:deno@sha256:fa5bd47fc5a19095a26f1660d8d64fb571d24b476cddf4f6e61ae0e7690caf87
depends_on: depends_on:
- tor - tor
- redis
restart: on-failure restart: on-failure
init: true init: true
stop_grace_period: 5m30s stop_grace_period: 5m30s
@ -152,9 +151,6 @@ services:
TOR_PROXY_PORT: ${TOR_PROXY_PORT} TOR_PROXY_PORT: ${TOR_PROXY_PORT}
TOR_HIDDEN_SERVICE_DIR: /var/lib/tor TOR_HIDDEN_SERVICE_DIR: /var/lib/tor
IS_CITADEL_OS: ${IS_CITADEL_OS:-"true"} IS_CITADEL_OS: ${IS_CITADEL_OS:-"true"}
REDIS_PASSWORD: freedom
REDIS_IP: $REDIS_IP
REDIS_PORT: 6379
UNSAFE_REMOVE_CORS_CHECK: true UNSAFE_REMOVE_CORS_CHECK: true
networks: networks:
default: default:
@ -165,7 +161,6 @@ services:
depends_on: depends_on:
- bitcoin - bitcoin
- lightning - lightning
- redis
command: sh -c "./wait-for-manager.sh $MANAGER_IP && ././start.sh" command: sh -c "./wait-for-manager.sh $MANAGER_IP && ././start.sh"
restart: on-failure restart: on-failure
volumes: volumes:
@ -205,20 +200,19 @@ services:
networks: networks:
default: default:
ipv4_address: $NEUTRINO_SWITCHER_IP ipv4_address: $NEUTRINO_SWITCHER_IP
redis: i2p:
container_name: redis container_name: i2p
user: 1000:1000 user: 1000:1000
image: redis:7.0.0-bullseye@sha256:ad0705f2e2344c4b642449e658ef4669753d6eb70228d46267685045bf932303 image: purplei2p/i2pd:latest@sha256:d8e1a28a8428ed9bda15bbf773e355cf46c89c652dcaa6cd9131606ee308ae47
working_dir: /data working_dir: /data
volumes: volumes:
- ${PWD}/redis:/data - ${PWD}/i2p:/home/i2pd/data
command: redis-server --requirepass freedom
restart: on-failure restart: on-failure
stop_grace_period: 1m stop_grace_period: 1m
init: true init: true
networks: networks:
default: default:
ipv4_address: $REDIS_IP ipv4_address: $I2P_IP
networks: networks:
default: default:

6
scripts/configure vendored
View File

@ -256,7 +256,7 @@ TOR_PROXY_IP="10.21.21.11"
APPS_TOR_IP="10.21.21.12" APPS_TOR_IP="10.21.21.12"
APPS_2_TOR_IP="10.21.21.13" APPS_2_TOR_IP="10.21.21.13"
APPS_3_TOR_IP="10.21.21.14" APPS_3_TOR_IP="10.21.21.14"
REDIS_IP="10.21.21.15" i2P_IP="10.21.21.15"
# Ports # Ports
BITCOIN_RPC_PORT="8332" BITCOIN_RPC_PORT="8332"
@ -268,6 +268,7 @@ BITCOIN_ZMQ_SEQUENCE_PORT="28335"
LND_GRPC_PORT="10009" LND_GRPC_PORT="10009"
LND_REST_PORT="8080" LND_REST_PORT="8080"
TOR_PROXY_PORT="9050" TOR_PROXY_PORT="9050"
I2P_SAM_PORT="7656"
TOR_CONTROL_PORT="29051" TOR_CONTROL_PORT="29051"
DEVICE_HOSTNAME="" DEVICE_HOSTNAME=""
@ -316,7 +317,8 @@ templates_to_build = {
"./templates/lnd-sample.conf": "./lnd/lnd.conf", "./templates/lnd-sample.conf": "./lnd/lnd.conf",
"./templates/bitcoin-sample.conf": "./bitcoin/bitcoin.conf", "./templates/bitcoin-sample.conf": "./bitcoin/bitcoin.conf",
"./templates/.env-sample": "./.env", "./templates/.env-sample": "./.env",
"./templates/nginx-sample.conf": "./nginx/nginx.conf" "./templates/nginx-sample.conf": "./nginx/nginx.conf",
"./templates/i2p-sample.conf": "./i2p/i2pd.conf"
} }
print("Generating configuration files...") print("Generating configuration files...")

View File

@ -15,7 +15,7 @@ DASHBOARD_NEW_IP=<dashboard-new-ip>
MANAGER_IP=<manager-ip> MANAGER_IP=<manager-ip>
MIDDLEWARE_IP=<middleware-ip> MIDDLEWARE_IP=<middleware-ip>
NEUTRINO_SWITCHER_IP=<neutrino-switcher-ip> NEUTRINO_SWITCHER_IP=<neutrino-switcher-ip>
REDIS_IP=<redis-ip> I2P_IP=<i2p-ip>
BITCOIN_NETWORK=<bitcoin-network> BITCOIN_NETWORK=<bitcoin-network>
BITCOIN_IP=<bitcoin-ip> BITCOIN_IP=<bitcoin-ip>
BITCOIN_P2P_PORT=<bitcoin-p2p-port> BITCOIN_P2P_PORT=<bitcoin-p2p-port>

View File

@ -9,6 +9,9 @@
proxy=<tor-proxy-ip>:<tor-proxy-port> proxy=<tor-proxy-ip>:<tor-proxy-port>
listen=1 listen=1
# I2P
i2psam=<i2p-ip>-<i2p-sam-port>
# Mainnet/Testnet/Signet/regtest # Mainnet/Testnet/Signet/regtest
<bitcoin-network>=1 <bitcoin-network>=1

View File

@ -0,0 +1,6 @@
log = true
[sam]
enabled = true
port = <i2p-sam-port>
address = <i2p-ip>