mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-08-28 09:24:17 +00:00
docs(docker): switch compose restart policy guidance to on-failure:3
Update Docker documentation examples to use restart: on-failure:3 instead of unless-stopped. Reason: unless-stopped causes Docker to restart the container even after an orderly shutdown initiated from the I2P Router Console, so intentional UI shutdowns do not stay down. The new policy keeps crash recovery behavior for non-zero exits while allowing clean shutdowns (exit 0) to remain stopped.
This commit is contained in:
@@ -41,6 +41,8 @@ Then open your browser to **http://127.0.0.1:7657** to access the I2P Router Con
|
||||
|
||||
## Docker Compose Examples
|
||||
|
||||
These examples use `restart: on-failure:3`. This retries unexpected failures up to 3 times, while a normal shutdown from the Router Console exits cleanly and stays stopped. Adjust the retry count for your deployment.
|
||||
|
||||
### Minimal
|
||||
|
||||
Runs the router console and HTTP proxy only. Good for trying I2P out.
|
||||
@@ -49,7 +51,7 @@ Runs the router console and HTTP proxy only. Good for trying I2P out.
|
||||
services:
|
||||
i2p:
|
||||
image: geti2p/i2p:latest
|
||||
restart: unless-stopped
|
||||
restart: on-failure:3
|
||||
volumes:
|
||||
- ./i2pconfig:/i2p/.i2p
|
||||
ports:
|
||||
@@ -65,7 +67,7 @@ Includes persistent volumes, memory limits, and an external port for non-firewal
|
||||
services:
|
||||
i2p:
|
||||
image: geti2p/i2p:latest
|
||||
restart: unless-stopped
|
||||
restart: on-failure:3
|
||||
environment:
|
||||
- JVM_XMX=512m
|
||||
- EXT_PORT=12345
|
||||
@@ -88,7 +90,7 @@ Exposes every available service. Only use this if you need all of them.
|
||||
services:
|
||||
i2p:
|
||||
image: geti2p/i2p:latest
|
||||
restart: unless-stopped
|
||||
restart: on-failure:3
|
||||
environment:
|
||||
- JVM_XMX=512m
|
||||
- EXT_PORT=12345
|
||||
|
||||
Reference in New Issue
Block a user