Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Healthcheck breaks after saving, then editing #578

Open
2 tasks done
sottey opened this issue Jul 29, 2024 · 0 comments
Open
2 tasks done

Healthcheck breaks after saving, then editing #578

sottey opened this issue Jul 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sottey
Copy link

sottey commented Jul 29, 2024

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ 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

  1. Create a new service in Dockge
  2. 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:
  1. Name and save the service
  2. Click edit
  3. 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
@sottey sottey added the bug Something isn't working label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant