variant: flatcar version: 1.1.0 systemd: units: - name: lb.service enabled: true contents_local: lb/lb.service - name: docker-network.service enabled: true contents_local: docker-network/docker-network.service - name: thintz-com.service enabled: true contents_local: thintz-com/thintz-com.service ### docker-compose sysext ### https://flatcar.github.io/sysext-bakery/docker_compose/ - name: systemd-sysupdate.timer enabled: true - name: systemd-sysupdate.service dropins: - name: docker-compose.conf contents: | [Service] ExecStartPre=/usr/bin/sh -c "readlink --canonicalize /etc/extensions/docker-compose.raw > /tmp/docker-compose" ExecStartPre=/usr/lib/systemd/systemd-sysupdate -C docker-compose update ExecStartPost=/usr/bin/sh -c "readlink --canonicalize /etc/extensions/docker-compose.raw > /tmp/docker-compose-new" ExecStartPost=/usr/bin/sh -c "if ! cmp --silent /tmp/docker-compose /tmp/docker-compose-new; then touch /run/reboot-required; fi" storage: files: - path: /var/lb/caddy/Caddyfile contents: local: lb/Caddyfile - path: /var/thintz-com/caddy/Caddyfile contents: local: thintz-com/Caddyfile ### docker-compose sysext ### https://flatcar.github.io/sysext-bakery/docker_compose/ - path: /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw mode: 0644 contents: source: https://extensions.flatcar.org/extensions/docker-compose-2.34.0-x86-64.raw - path: /etc/sysupdate.docker-compose.d/docker-compose.conf contents: source: https://extensions.flatcar.org/extensions/docker-compose.conf - path: /etc/sysupdate.d/noop.conf contents: source: https://extensions.flatcar.org/extensions/noop.conf links: - target: /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw path: /etc/extensions/docker-compose.raw hard: false