Add start of basic config with reseeder

The reseeder doesn't work yet as we can't target it yet

#5 - Create SAM server tunnels in trans-proxy
This commit is contained in:
2020-12-31 20:46:16 +01:00
parent 9ae00e359c
commit d59d950048
2 changed files with 54 additions and 0 deletions

49
docker-compose.test.yml Normal file
View File

@@ -0,0 +1,49 @@
version: "3"
services:
i2pd:
build:
context: i2p
ports:
- "26976:26976"
networks:
- no_internet
# Changes ownership of the volumes to the i2psvc user
volume_setup:
image: alpine
command: chown -R 101:101 /i2p/
volumes:
- reseed_i2p:/i2p/netdb
- reseed_keys:/i2p/keys
# You will need to access this directly with the IP
reseed-i2pd:
build:
context: i2p
depends_on:
- volume_setup
networks:
- no_internet
volumes:
- reseed_i2p:/var/lib/i2p/i2p-config/netDb
reseeder:
image: eyedeekay/reseed
command: --signer somebody@test.i2p
user: "101"
depends_on:
- reseed-i2pd
networks:
- no_internet
volumes:
- ./reseed/entrypoint.sh:/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/entrypoint.sh
- reseed_i2p:/var/lib/i2p/i2p-config/netDb
- reseed_keys:/var/lib/i2p/i2p-config/reseed
volumes:
reseed_i2p: {}
reseed_keys: {}
networks:
no_internet:
internal: true

5
reseed/entrypoint.sh Executable file
View File

@@ -0,0 +1,5 @@
#! /usr/bin/env sh
cp -r /var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/content ./content
/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/reseed-tools reseed --yes=true --netdb=/var/lib/i2p/i2p-config/netDb $@