Skip to content

Instantly share code, notes, and snippets.

@pacopablo
Created March 2, 2015 22:01
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 pacopablo/3938e9dc5527279a31e8 to your computer and use it in GitHub Desktop.
Save pacopablo/3938e9dc5527279a31e8 to your computer and use it in GitHub Desktop.
SaltStack docker.io stuff
docker-registries:
https://index.docker.io/v1/:
email: <email address>
user: <username>
password: <super secret password>
https://<fqdn>:5000:
email: <email address>
password: <super secret password>
user: <username>
nginx-image:
docker.pulled:
- name: pacopablo/nginx-proxy
- require_in: nginx-container
proxy_config-image:
docker.pulled:
- name: <fqdn>:5000/proxy_config-image
- tag: latest
proxy_config-container:
docker.installed:
- name: proxy_config
- image: <fqdn>:5000/proxy_config-image
- require_in: nginx
nginx-container:
docker.installed:
- name: webproxy
- hostname: webproxy
- image: pacopablo/nginx-proxy
- require_in: nginx
nginx:
docker.running:
- container: webproxy
- port_bindings:
"80/tcp":
HostIp: ""
HostPort: "80"
"443/tcp":
HostIp: ""
HostPort: "443"
- volumes_from: ['proxy_config']
- volumes:
- /etc/ssl:/etc/ssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment