Skip to content

Instantly share code, notes, and snippets.

@denniswebb
Created January 20, 2018 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denniswebb/0f107937347566f319179ffd2b3af727 to your computer and use it in GitHub Desktop.
Save denniswebb/0f107937347566f319179ffd2b3af727 to your computer and use it in GitHub Desktop.
userdata for single host RancherOS
#cloud-config
hostname: rancher-ergon
rancher:
console: debian
services:
rancher-server:
image: rancher/server
command: --db-host mysql.denniswebb.info
restart: always
ports:
- 8080:8080
rancher-agent1:
image: rancher/agent
command: http://127.0.0.1:8080/v1/projects/1a5/scripts/<token>
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment