You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.9 KiB
YAML
54 lines
1.9 KiB
YAML
variant: flatcar
|
|
version: 1.1.0
|
|
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: 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
|
|
- 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
|