# IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User # SOME_SECRET in this template templates: - "templates/sshd.template.yml" - "templates/web.template.yml" expose: - "80:80" - "2222:22" params: # your ssh key can go here, or you can use ssh-import-id ssh_key: "" version: HEAD database_yml: production: socket: "" host: <%= ENV['DOCKER_HOST_IP'] %> database: discourse username: discourse password: SOME_SECRET host_names: - www.SOME_DOMAIN.com # developer emails allow you to fast track account creation on the site env: DEVELOPER_EMAILS: '' volumes: - volume: host: /var/docker/shared guest: /shared # you may use the docker manager to upgrade and monitor your docker image # UI will be visible at http://yoursite.com/admin/docker hooks: # you may import your key using launchpad if needed #after_sshd: # - exec: ssh-import-id some-user after_code: - file: path: $home/config/redis.yml contents: | production: host: <%= ENV['DOCKER_HOST_IP'] %> port: 6379 db: 0 cache_db: 2 - exec: cd: $home/plugins cmd: - mkdir -p plugins - git clone https://github.com/discourse/docker_manager.git # mail is critical, setup here # - replace: # filename: /var/www/discourse/config/environments/production.rb # from: /end/ # direction: reverse # to: | # config.action_mailer.delivery_method = :smtp # config.action_mailer.smtp_settings = { # :address => 'smtp.mandrillapp.com', # :port => 587, # :domain => 'domain', # :user_name => 'user@email.com', # :password => 'pwd', # :authentication => 'login', # :enable_starttls_auto => true # } # end