mirror of
https://github.com/0x1d/drift-keeper.git
synced 2025-12-14 18:35:20 +01:00
49 lines
930 B
YAML
49 lines
930 B
YAML
#cloud-config
|
|
groups:
|
|
- ubuntu: [root,sys]
|
|
- docker
|
|
- bot
|
|
|
|
users:
|
|
- default
|
|
- name: keeper
|
|
gecos: keeper
|
|
shell: /bin/bash
|
|
primary_group: bot
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
groups: users, admin, docker
|
|
lock_passwd: false
|
|
|
|
packages:
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
- curl
|
|
- gnupg-agent
|
|
- software-properties-common
|
|
- chrony
|
|
- docker.io
|
|
- docker-compose
|
|
|
|
ntp:
|
|
enabled: true
|
|
ntp_client: chrony
|
|
servers:
|
|
- ${ntp_server}
|
|
|
|
runcmd:
|
|
- git clone https://github.com/0x1d/drift-keeper /app/bot
|
|
- mv /app/.env /app/bot/.env
|
|
- mv /app/config.yaml /app/bot/config.yaml
|
|
- cd /app/bot && sudo -u keeper -g bot -- docker-compose up -d
|
|
|
|
write_files:
|
|
- path: /app/.env
|
|
encoding: b64
|
|
owner: root:root
|
|
permissions: '0750'
|
|
content: ${env_file}
|
|
- path: /app/config.yaml
|
|
encoding: b64
|
|
owner: root:root
|
|
permissions: '0750'
|
|
content: ${config_file} |