podlet icon indicating copy to clipboard operation
podlet copied to clipboard

Converting docker compose file does not append necessary `.network` to network names

Open puresick opened this issue 7 months ago • 3 comments

Hey :wave:

After setting up Penpot with its official docker compose file I wanted to add Quadlet systemd units to keep its containers restarted after a server reboot.

Using Podlet I converted the compose file, which resulted in the postgres and redis container to fail starting properly. systemctl --user status penpot-redis.service gave the following error (it was similar for penpot-postgres.service:

Failed to start penpot-redis.service.                                                                                    
penpot-redis.service: Scheduled restart job, restart counter is at 5.                                                    
penpot-redis.service: Start request repeated too quickly.                                                                
penpot-redis.service: Failed with result 'exit-code'.                                                                    
Failed to start penpot-redis.service.

Unfortunately journalctl -xe did not show any more detail on this error.

While trying to understand this and fiddling around with a simple quadlet file setting up redis, I notices that adding Network=penpot was causing the same issue on the test quadlet file. Researching a bit lead me to the clue to append .networkto that line resulting in Network=penpot.network, which solved the issue.

I assume this might be something getting lost in the convertion process?

Please let me know if any more details will help solving this issue.

System Info:

  • Fedora 40
  • Podman 5.1.1
  • Podlet 0.3.0

puresick avatar Jun 29 '24 23:06 puresick