added healthchecks and removed exposed password from compose.yaml

This commit is contained in:
2026-07-24 12:03:33 +00:00
parent 1df84fe52a
commit 499bf411b0
7 changed files with 83 additions and 5 deletions
+26 -2
View File
@@ -48,8 +48,27 @@ services:
environment:
- CONTAINER_NAME=palworld-server
- DOCKER_HOST=tcp://admin-backend:2375
- PASSWORD=saf3fluffypvvd
- USERNAME=admin
- PASSWORD=${PANEL_PASS}
- USERNAME=${PANEL_USER}
healthcheck:
test:
- "CMD"
- "python3"
- "-c"
- |
import urllib.request, sys
try:
urllib.request.urlopen('http://localhost:5000/', timeout=5)
except urllib.error.HTTPError as e:
if e.code in [401, 403]:
sys.exit(0)
sys.exit(1)
except Exception:
sys.exit(1)
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
admin-backend:
image: tecnativa/docker-socket-proxy
@@ -63,6 +82,11 @@ services:
- CONTAINERS=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 2375 || exit 1"]
interval: 10s
timeout: 3s
retries: 3
networks:
palworld-admin:
internal: true