tf-ct-services/cloud-init.yaml

15 lines
605 B
YAML
Raw Permalink Normal View History

#cloud-config
# Base host for com.uvlava.ct.services: docker + swap, ready for the CT/MC MCP +
# app-backend deployments (each app deploys its own compose/units here later).
package_update: true
packages:
- docker.io
- docker-compose-v2
runcmd:
- [ bash, -c, "fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo '/swapfile none swap sw 0 0' >> /etc/fstab" ]
- [ bash, -c, "mkdir -p /opt/ct-services" ]
- [ systemctl, enable, --now, docker ]
final_message: "com.uvlava.ct.services base ready (docker + swap). Deploy CT/MC MCPs + app backends here."