ojuso-map/bin/create-discourse

28 lines
1.0 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# Create Discourse
2017-06-16 16:06:22 +00:00
docker run -d --restart=always \
-e LANG=en_US.UTF-8 \
-e RAILS_ENV=production \
-e UNICORN_WORKERS=4 \
-e UNICORN_SIDEKIQS=1 \
-e RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 \
-e RUBY_GC_HEAP_GROWTH_MAX_SLOTS=40000 \
-e RUBY_GC_HEAP_INIT_SLOTS=400000 \
-e RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=1.5 \
-e DISCOURSE_DB_SOCKET=/var/run/postgresql \
-e LETSENCRYPT_DIR=/shared/letsencrypt \
-e DISCOURSE_HOSTNAME=forum.ojuso.org \
-e DISCOURSE_DEVELOPER_EMAILS=admin@ojuso.org \
-e DISCOURSE_SMTP_ADDRESS=mail.gandi.net \
-e DISCOURSE_SMTP_PORT=587 \
-e DISCOURSE_SMTP_USER_NAME=admin@ojuso.org \
-e DISCOURSE_SMTP_PASSWORD=QN7yosrnch1le474H56mesVR1SRw6sfO3izJDZnJ6T62Cj9I57CplW6UYZY6VXsq7lLr868bIK3kSXGyWiSrAyWK \
-e LETSENCRYPT_ACCOUNT_EMAIL=admin@ojuso.org -h energy-app \
-e DOCKER_HOST_IP=172.17.0.1 \
--name app \
-p 80:80 -p 443:443 \
-v /var/discourse/shared/standalone:/shared \
-v /var/discourse/shared/standalone/log/var-log:/var/log \
--mac-address 02:2d:a6:d4:85:4a \
local_discourse/app /sbin/boot