2022-02-25 16:52:50 +00:00
|
|
|
# https://github.com/PurpleI2P/i2pd/blob/openssl/contrib/docker/Dockerfile
|
2022-03-13 00:31:10 +00:00
|
|
|
# https://i2pd.readthedocs.io/en/latest/user-guide/configuration/
|
2022-02-25 16:52:50 +00:00
|
|
|
|
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
i2pd:
|
|
|
|
image: purplei2p/i2pd
|
|
|
|
container_name: i2pd
|
|
|
|
volumes:
|
|
|
|
#- "./config:/config"
|
|
|
|
- "${HOST_DATA_DIR}:${DATA_DIR}"
|
|
|
|
ports:
|
2022-03-13 00:31:10 +00:00
|
|
|
# Web interface
|
2022-02-25 16:52:50 +00:00
|
|
|
- "7070:7070/tcp"
|
2022-03-13 00:31:10 +00:00
|
|
|
# HTTP Proxy
|
2022-02-25 16:52:50 +00:00
|
|
|
- "4444:4444/tcp"
|
2022-03-13 00:31:10 +00:00
|
|
|
# SOCKS proxy
|
2022-02-25 16:52:50 +00:00
|
|
|
- "4447:4447/tcp"
|
2022-03-13 00:31:10 +00:00
|
|
|
# SAM bridge
|
2022-02-25 16:52:50 +00:00
|
|
|
- "7656:7656/tcp"
|
2022-03-13 00:31:10 +00:00
|
|
|
# BOB command channel
|
|
|
|
#- "2827:2827/tcp"
|
|
|
|
# I2CP server
|
2022-02-25 16:52:50 +00:00
|
|
|
- "7654:7654/tcp"
|
2022-03-13 00:31:10 +00:00
|
|
|
# I2P control service
|
2022-02-25 16:52:50 +00:00
|
|
|
- "7650:7650/tcp"
|
|
|
|
env_file: .env
|
2022-03-13 00:31:10 +00:00
|
|
|
network_mode: host
|
2022-02-25 16:52:50 +00:00
|
|
|
restart: unless-stopped
|
2022-03-13 00:31:10 +00:00
|
|
|
user: "${HOST_USER:-0}"
|
2022-02-25 16:52:50 +00:00
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
|
|
|
max-file: "${LOG_MAX_FILE:-5}"
|