See https://github.com/jayniz/discourse-passenger
10K+
This is a little docker image that helps play around with discourse in an environment where you don't want to use the custom baked docker image with everything inside, but use other instances of postgres and redis.
It's not meant to just be used to production, there are a bunch of limitations to this docker image (no plugins and advanced configuration) so you should make sure to read this discussion
postgres -c "psql MY_DATABASE -c 'CREATE EXTENSION hstore;'"postgres -c "psql MY_DATABASE -c 'CREATE EXTENSION pr_trgm;'"rake db:migrate in the discourse containerrake admin:create in the discourse containerHere's an example docker-compose to get you up and running:
version: '2.1'
services:
postgres:
environment:
- POSTGRES_USER=discourse
- POSTGRES_DB=discourse
image: postgres:9
redis:
image: redis:4
discourse:
environment:
- DISCOURSE_DB_HOST=postgres
- DISCOURSE_REDIS_HOST=redis
- DISCOURSE_RELATIVE_URL_ROOT=/forum
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
image: jannis/discourse-passenger
ports:
- 12345:80
You can configure a lot of discourse through the DISCOURSE_* environment
variables. The following are passed through to the application by passenger
(you can add your own via nginx/discourse-env.conf):
DISCOURSE_BACKUP_HOSTNAMEDISCOURSE_CDN_URLDISCOURSE_CONNECTION_REAPER_AGEDISCOURSE_CONNECTION_REAPER_INTERVALDISCOURSE_CORS_ORIGINDISCOURSE_DB_HOSTDISCOURSE_DB_NAMEDISCOURSE_DB_PASSWORDDISCOURSE_DB_POOLDISCOURSE_DB_PORTDISCOURSE_DB_PREPARED_STATEMENTSDISCOURSE_DB_SOCKETDISCOURSE_DB_TIMEOUTDISCOURSE_DB_USERNAMEDISCOURSE_DEVELOPER_EMAILSDISCOURSE_ENABLE_CORSDISCOURSE_HOSTNAMEDISCOURSE_LOAD_MINI_PROFILERDISCOURSE_NEW_VERSION_EMAILSDISCOURSE_REDIS_DBDISCOURSE_REDIS_HOSTDISCOURSE_REDIS_PASSWORDDISCOURSE_REDIS_PORTDISCOURSE_REDIS_SENTINELSDISCOURSE_RELATIVE_URL_ROOTDISCOURSE_RTL_CSSDISCOURSE_SERVE_STATIC_ASSETSDISCOURSE_SIDEKIQ_WORKERSDISCOURSE_SMTP_ADDRESSDISCOURSE_SMTP_AUTHENTICATIONDISCOURSE_SMTP_DOMAINDISCOURSE_SMTP_ENABLE_START_TLSDISCOURSE_SMTP_OPENSSL_VERIFY_MODEDISCOURSE_SMTP_PASSWORDDISCOURSE_SMTP_PORTDISCOURSE_SMTP_USER_NAMEPATHRAILS_ENVContent type
Image
Digest
Size
784.1 MB
Last updated
over 8 years ago
docker pull jannis/discourse-passenger