Revert "docs(deploy): simplify deployment guide and update docker compose"

This reverts commit 86d53818a8.
This commit is contained in:
Ran
2026-02-12 15:37:17 +08:00
parent 5b05f13f1a
commit 818a48b406
2 changed files with 365 additions and 56 deletions
+4 -25
View File
@@ -49,7 +49,7 @@ services:
- /run/containerd/containerd.sock:/run/containerd/containerd.sock
- /var/lib/containerd:/var/lib/containerd
- server_cni_state:/var/lib/cni
- /app/data:/app/data
- ${MEMOH_DATA_ROOT:-/opt/memoh/data}:${MEMOH_DATA_ROOT:-/opt/memoh/data}
cap_add:
- SYS_ADMIN
- NET_ADMIN
@@ -58,12 +58,6 @@ services:
- apparmor:unconfined
ports:
- "8080:8080"
healthcheck:
test: ["CMD-SHELL", "netstat -tln | grep :8080 || exit 1 "]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
depends_on:
postgres:
condition: service_healthy
@@ -82,15 +76,8 @@ services:
- ./config.toml:/config.toml:ro
ports:
- "8081:8081"
healthcheck:
test: ["CMD-SHELL", "netstat -tln | grep :8081 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
depends_on:
server:
condition: service_healthy
- server
restart: unless-stopped
networks:
- memoh-network
@@ -105,17 +92,9 @@ services:
container_name: memoh-web
ports:
- "80:80"
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
depends_on:
server:
condition: service_healthy
agent:
condition: service_healthy
- server
- agent
restart: unless-stopped
networks:
- memoh-network