Code: Select all
services:
i2pd:
image: purplei2p/i2pd
container_name: i2pd
hostname: i2pd
#network_mode: host
networks:
- net_i2p
ports:
- 7070:7070
volumes:
- ./i2pd/data:/home/i2pd/data # make sure data directory and it's contents are owned by 100:65533
command: --conf=/home/i2pd/data/i2pd.conf --tunconf=/home/i2pd/data/tunnels.conf --tunnelsdir=/home/i2pd/data/tunnels.conf.d/
restart: always
networks:
net_i2p:
Code: Select all
chown -R 100:65533 ./i2pd/dataThe second and much bigger problem is that can't access the webui unless I let the container use the host's network. When the container is running inside the docker network there by default is no reaction whatsoever when trying to access the webui. Changing the listen address of the webui to 0.0.0.0 returns an almost blank page, only saying "host mismatch".
Is there anyway to fix this and use i2pd inside docker just the same way you would use the non-dockerized daemon?