39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
version: '3.8'
|
|
services:
|
|
i2pd:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
command: ["--http.strictheaders=false", "--log=stdout", "--loglevel=error", "--port=${EXTERNAL_PORT}"]
|
|
image: i2pd-sandbox:latest
|
|
container_name: i2pd
|
|
hostname: i2pd
|
|
networks:
|
|
- i2pd-external
|
|
- i2pd-internal # Isolated network for running services
|
|
volumes:
|
|
- i2pd-data:/home/i2pd
|
|
ports:
|
|
- "127.0.0.1:4444:4444" # HTTP proxy
|
|
- "127.0.0.1:4447:4447" # HTTPS proxy
|
|
- "127.0.0.1:6668:6668" # IRC
|
|
- "127.0.0.1:7656:7656" # SAM
|
|
- "127.0.0.1:7070:7070" # Web console
|
|
- "127.0.0.1:7659:7659" # SMTP
|
|
- "127.0.0.1:7660:7660" # POP
|
|
- "0.0.0.0:${EXTERNAL_PORT}:${EXTERNAL_PORT}/tcp" # External TCP port
|
|
- "0.0.0.0:${EXTERNAL_PORT}:${EXTERNAL_PORT}/udp" # External UDP port
|
|
restart: "no"
|
|
|
|
# Volumes
|
|
volumes:
|
|
i2pd-data:
|
|
|
|
# Networks
|
|
networks:
|
|
i2pd-external:
|
|
name: i2pd-external
|
|
i2pd-internal:
|
|
name: i2pd-internal
|
|
internal: true
|