summaryrefslogtreecommitdiff
path: root/config-simple.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-11-20 00:58:51 -0400
committerJoey Hess <joey@kitenet.net>2014-11-20 00:58:51 -0400
commit02b8b2dec7c767ba3b7154e424b9c11e6a8d544f (patch)
tree84f8394029d0b17de94a47ea59dd29b70d5bab38 /config-simple.hs
parentf1b2df601e0eb2fdd5dbc3bc72df0f0493230046 (diff)
parent0d4dd37ee769a6ef1bc80507c8ee8a4b9e882856 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'config-simple.hs')
-rw-r--r--config-simple.hs19
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"