dockge
dockge copied to clipboard
Healthcheck breaks after saving, then editing
⚠️ Please verify that this bug has NOT been reported before.
- [X] I checked and didn't find similar issue
🛡️ Security Policy
- [X] I agree to have read this project Security Policy
Description
I have a docker compose file (for Readeck, https://codeberg.org/readeck/readeck?ref=noted.lol) whcih is fine until I save the data, then try to edit it again. The healthcheck command gets broken.
👟 Reproduction steps
- Create a new service in Dockge
- Paste in this compose file:
version: "3.9"
services:
app:
image: codeberg.org/readeck/readeck:latest
container_name: readeck
ports:
- 8000:8000
environment:
- READECK_LOG_LEVEL=info
# The IP address on which Readeck listens.
- READECK_SERVER_HOST=0.0.0.0
# The TCP port on which Readeck listens. Update container port above to match (right of colon).
- READECK_SERVER_PORT=8000
# The URL prefix of Readeck.
- READECK_SERVER_PREFIX=/
# A list of hostnames allowed in HTTP requests. Required for reverse proxy configuration.
- READECK_ALLOWED_HOSTS=readeck.example.com
# Use the 'X-Forwarded-' headers. Required for reverse proxy configuration.
- READECK_USE_X_FORWARDED=true
volumes:
- readeck-data:/readeck
restart: unless-stopped
healthcheck:
test: ["CMD", "/bin/readeck", "healthcheck", "-config", "config.toml"]
interval: 30s
timeout: 2s
retries: 3
volumes:
readeck-data:
- Name and save the service
- Click edit
- Note that the healthcheck data has changed:
version: "3.9"
services:
app:
image: codeberg.org/readeck/readeck:latest
container_name: readeck
ports:
- 8083:8000
environment:
- READECK_LOG_LEVEL=info
- READECK_SERVER_HOST=0.0.0.0
- READECK_SERVER_PORT=8083
- READECK_SERVER_PREFIX=/
- READECK_ALLOWED_HOSTS=snow.sco.li
- READECK_USE_X_FORWARDED=true
volumes:
- readeck-data:/readeck
restart: unless-stopped
healthcheck:
test:
- CMD
- /bin/readeck
- healthcheck
- -config
- config.toml
interval: 30s
timeout: 2s
retries: 3
networks: {}
volumes:
readeck-data:
👀 Expected behavior
The healcheck command should stay the same as originally written
😓 Actual Behavior
healthcheck command is converted to bullet points
Dockge Version
1.4.2
💻 Operating System and Arch
Ubuntu 22
🌐 Browser
Orion
🐋 Docker Version
Docker version 27.1.1, build 6312585
🟩 NodeJS Version
is in image provided
📝 Relevant log output
None