diff options
| author | Joey Hess <joey@kitenet.net> | 2014-11-19 23:11:34 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-19 23:11:34 -0400 |
| commit | d49d2518979c7b985af8f00741f2a91bcd511024 (patch) | |
| tree | 9adefd40c6fa82e6f27e57c84817abd0c56b1577 /config-simple.hs | |
| parent | b7d78e679ab94a93732f48f4446c1b55bf3dae32 (diff) | |
separate docker container type
Docker containers are now a separate data type, cannot be included in the
main host list, and are instead passed to Docker.docked. (API change)
Diffstat (limited to 'config-simple.hs')
| -rw-r--r-- | config-simple.hs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/config-simple.hs b/config-simple.hs index dcdc51a3..fb02e279 100644 --- a/config-simple.hs +++ b/config-simple.hs @@ -32,18 +32,19 @@ hosts = & User.hasSomePassword "root" (Context "mybox.example.com") & Network.ipv6to4 & File.dirExists "/var/www" - & Docker.docked hosts "webserver" + & Docker.docked webserverContainer & Docker.garbageCollected `period` Daily & Cron.runPropellor "30 * * * *" - -- A generic webserver in a Docker container. - , Docker.container "webserver" "joeyh/debian-stable" - & os (System (Debian (Stable "wheezy")) "amd64") - & Apt.stdSourcesList - & Docker.publish "80:80" - & Docker.volume "/var/www:/var/www" - & Apt.serviceInstalledRunning "apache2" - -- add more hosts here... --, host "foo.example.com" = ... ] + +-- A generic webserver in a Docker container. +webserverContainer :: Docker.Container +webserverContainer = Docker.container "webserver" "joeyh/debian-stable" + & os (System (Debian (Stable "wheezy")) "amd64") + & Apt.stdSourcesList + & Docker.publish "80:80" + & Docker.volume "/var/www:/var/www" + & Apt.serviceInstalledRunning "apache2" |
