commit 0676a7f1a71b9c2b8637da2f01ad51cb330784d4 Author: ae Date: Sun Nov 17 23:21:09 2024 +0200 initial commit diff --git a/.env.template b/.env.template new file mode 100644 index 0000000..9021d93 --- /dev/null +++ b/.env.template @@ -0,0 +1 @@ +EXT_PORT="" \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b0bec7 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# i2pbox + +This repository contains the configurations related to [this blog post](https://golfed.xyz/blog/i2p-on-vps/) about running I2P on a remote VPS and accessing it with the help of SSH port forwarding. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..30fc441 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +# https://github.com/i2p/i2p.i2p/blob/master/Docker.md + +services: + i2p: + image: geti2p/i2p + container_name: i2p + ports: + # Automatically exposed to localhost: 4444-4445/tcp, 6668/tcp, 7654/tcp, 7656-7660/tcp + - ${EXT_PORT:?host port must be manually set}:12345/tcp + - ${EXT_PORT:?host port must be manually set}:12345/udp + volumes: + - ${PWD}/i2pconfig:/i2p/.i2p:rw # Mandatory configs + - ${PWD}/i2ptorrents:/i2psnark:rw # Torrenting support + environment: + JVM_XMX: 256m # Memory limited to 256 MB + EXT_PORT: ${EXT_PORT:?host port must be manually set}