variant: flatcar version: 1.1.0 passwd: users: - name: core ssh_authorized_keys: - "" systemd: units: - name: app.service enabled: true contents_local: app/app.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: app/lb/Caddyfile - path: /var/thintz-com/caddy/Caddyfile contents: local: app/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 - path: /home/core/docker-compose.yaml mode: 0644 user: name: core group: name: core contents: local: app/docker-compose.yaml links: - target: /opt/extensions/docker-compose/docker-compose-2.34.0-x86-64.raw path: /etc/extensions/docker-compose.raw hard: false