Guest User

app.yml

a guest
Apr 7th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.23 KB | None | 0 0
  1. # IMPORTANT: SET A SECRET PASSWORD in Postgres for the Discourse User
  2. # TODO: change SOME_SECRET in this template
  3.  
  4. templates:
  5.  - "templates/web.template.yml"
  6.   - "templates/web.ratelimited.template.yml"
  7.  
  8. expose:
  9.  - "127.0.0.1:8181:8080"
  10.   - "2222:22"
  11.  
  12. # Use 'links' key to link containers together, aka use Docker --link flag.
  13. links:
  14.   - link:
  15.       name: data
  16.       alias: data
  17.   - link:
  18.       name: redis
  19.       alias: redis
  20.  
  21. # any extra arguments for Docker?
  22. # docker_args:
  23.  
  24. params:
  25.  ## Which Git revision should this container use? (default: tests-passed)
  26.   #version: tests-passed
  27.  
  28. env:
  29.   LANG: en_US.UTF-8
  30.   ## TODO: How many concurrent web requests are supported?
  31.   ## With 2GB we recommend 3-4 workers, with 1GB only 2
  32.   ## If you have lots of memory, use one or two workers per logical CPU core
  33.   UNICORN_WORKERS: 3
  34.  
  35.   ## TODO: configure connectivity to the databases
  36.   DISCOURSE_DB_SOCKET: ''
  37.   DISCOURSE_DB_USERNAME: discourse
  38.   DISCOURSE_DB_PASSWORD: 'changeme!'
  39.   DISCOURSE_DB_HOST: data
  40.   DISCOURSE_REDIS_HOST: redis
  41.   ##
  42.   ## TODO: List of comma delimited emails that will be made admin and developer
  43.   ## on initial signup example 'user1@example.com,user2@example.com'
  44.   DISCOURSE_DEVELOPER_EMAILS: 'drupalet@gmail.com'
  45.   ##
  46.   ## TODO: The domain name this Discourse instance will respond to
  47.   DISCOURSE_HOSTNAME: 'www.discourse.dev'
  48.   ## TODO: Uncomment if you want the container to be started with the same
  49.   ##       hostname (-h option) as specified above (default "$hostname-$config")
  50.   ## NOTE: 'true' is the only valid value here, any other will be ignored
  51.   #DOCKER_USE_HOSTNAME: true
  52.   ##
  53.   ## TODO: The mailserver this Discourse instance will use
  54.   DISCOURSE_SMTP_ADDRESS: smtp.sparkpostmail.com         # (mandatory)
  55.   DISCOURSE_SMTP_PORT: 587                        # (optional)
  56.   DISCOURSE_SMTP_USER_NAME: SMTP_Injection      # (optional)
  57.   DISCOURSE_SMTP_PASSWORD: abcdefghijklmnolpqrst               # (optional)
  58.   ##
  59.   ## The CDN address for this Discourse instance (configured to pull)
  60.   #DISCOURSE_CDN_URL: //discourse-cdn.example.com
  61.  
  62. volumes:
  63.   - volume:
  64.       host: /var/discourse/shared/web-only
  65.       guest: /shared
  66.   - volume:
  67.       host: /var/discourse/shared/web-only/log/var-log
  68.       guest: /var/log
  69.  
  70. ## The docker manager plugin allows you to one-click upgrade Discouse
  71. ## http://discourse.example.com/admin/docker
  72. hooks:
  73.   after_code:
  74.     - exec:
  75.         cd: $home/plugins
  76.         cmd:
  77.          - git clone https://github.com/discourse/docker_manager.git
  78.  
  79. ## Remember, this is YAML syntax - you can only have one block with a name
  80. run:
  81.   - exec: echo "Beginning of custom commands"
  82.  
  83.   ## If you want to configure password login for root, uncomment and change:
  84.   ## Use only one of the following lines:
  85.   #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
  86.   #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root
  87.  
  88.   ## If you want to authorized additional users, uncomment and change:
  89.   #- exec: ssh-import-id username
  90.   #- exec: ssh-import-id anotherusername
  91.  
  92.   - exec: echo "End of custom commands"
  93.   - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'
Add Comment
Please, Sign In to add comment