Skip to content

Commit

Permalink
feat: pass custom args to Podman (#74)
Browse files Browse the repository at this point in the history
The PODMAN_RUN_OPTS environment variable can be set to custom values.
For example it can be used to set an additional environment variable for
Traefik runtime, like LEGO_CA_CERTIFICATES.

Refs NethServer/dev#7300
  • Loading branch information
DavidePrincipi committed Feb 17, 2025
1 parent d622b7d commit 235dd08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imageroot/systemd/user/traefik.service
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ExecStart=/usr/bin/podman run \
--volume=./selfsigned.key:/etc/traefik/selfsigned.key:z \
--volume=./configs:/etc/traefik/configs:z \
--volume=./custom_certificates:/etc/traefik/custom_certificates:z \
$PODMAN_RUN_OPTS \
${TRAEFIK_IMAGE}
ExecStartPost=-runagent write-hosts
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/traefik.ctr-id -t 15
Expand Down

0 comments on commit 235dd08

Please sign in to comment.