2019-07-20 21:25:00 +02:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
i2pd:
|
2019-07-27 23:06:01 +02:00
|
|
|
image: geti2p/i2p
|
2019-07-20 21:25:00 +02:00
|
|
|
hostname: i2pd
|
|
|
|
networks:
|
|
|
|
i2p_net:
|
|
|
|
ipv4_address: 172.16.200.10
|
|
|
|
aliases:
|
|
|
|
- i2pd
|
|
|
|
contained:
|
2019-07-24 13:41:57 +02:00
|
|
|
build:
|
|
|
|
context: contained/
|
2019-07-20 21:25:00 +02:00
|
|
|
hostname: contained
|
|
|
|
# Required for [iptables]
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
|
|
|
depends_on:
|
|
|
|
- i2pd
|
|
|
|
volumes:
|
|
|
|
- /tmp/contained:/mount
|
|
|
|
networks:
|
|
|
|
i2p_net:
|
|
|
|
ipv4_address: 172.16.200.20
|
|
|
|
aliases:
|
|
|
|
- contained
|
|
|
|
|
|
|
|
networks:
|
|
|
|
i2p_net:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: "172.16.200.0/24"
|
|
|
|
|
|
|
|
# iptables: https://stackoverflow.com/questions/41706983/installing-iptables-in-docker-container-based-on-alpinelinux
|