From 67a25ebf2a0730cbc1439fbfab9421983289502a Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 27 Nov 2013 19:21:16 -0800 Subject: [PATCH] added some samples for data only and web only containers --- data.yml.sample | 20 ++++++++++++++++++++ web_only.yml.sample | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 data.yml.sample create mode 100644 web_only.yml.sample diff --git a/data.yml.sample b/data.yml.sample new file mode 100644 index 0000000..2f46d82 --- /dev/null +++ b/data.yml.sample @@ -0,0 +1,20 @@ +# a basic data only container + +templates: + - "templates/cron.template.yml" + - "templates/postgres.template.yml" + - "templates/redis.template.yml" + - "templates/sshd.template.yml" + +expose: + - "5432:5432" + - "6379:6379" + - "2221:22" + +params: + ssh_key: YOUR_KEY + +volumes: + - volume: + host: /home/sam/discourse_docker/shared + guest: /shared diff --git a/web_only.yml.sample b/web_only.yml.sample new file mode 100644 index 0000000..da66d1d --- /dev/null +++ b/web_only.yml.sample @@ -0,0 +1,37 @@ +templates: + - "templates/cron.template.yml" + - "templates/postgres.template.yml" + - "templates/redis.template.yml" + - "templates/sshd.template.yml" + - "templates/web.template.yml" + +expose: + - "80:80" + - "2222:22" + +params: + ssh_key: YOUR_KEY + + version: HEAD + + + database_yml: + production: + host_names: + - example.com +env: + DEVELOPER_EMAILS: 'dev@example.com' + +volumes: + - volume: + host: /home/sam/discourse_docker/shared + guest: /shared + +hooks: + after_code: + - exec: + cd: $home/plugins + cmd: + - mkdir -p plugins + - git clone https://github.com/SamSaffron/blog.git + - git clone https://github.com/discourse/docker_manager.git -- 2.25.1