Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srid/discourse-docker
[unmaintained] Install and manage Discourse via docker [2014]
https://github.com/srid/discourse-docker
discourse docker
Last synced: 3 months ago
JSON representation
[unmaintained] Install and manage Discourse via docker [2014]
- Host: GitHub
- URL: https://github.com/srid/discourse-docker
- Owner: srid
- License: mit
- Created: 2013-08-29T03:41:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-26T05:23:25.000Z (almost 11 years ago)
- Last Synced: 2024-10-11T23:50:00.943Z (4 months ago)
- Topics: discourse, docker
- Language: Shell
- Homepage:
- Size: 372 KB
- Stars: 85
- Watchers: 9
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - srid/discourse-docker - [unmaintained] Install and manage Discourse via docker [2014] (docker)
README
discourse-docker
================[Discourse](http://discourse.org/) is a re-imagined online forum
software. Installing Discourse can be quite an involved process. We
use [Docker](http://www.docker.io/), an exciting new container
management tool, to greatly ease its install process.Usage
-----Get yourself a Ubuntu 13.04 VM (I recommend
[DigitalOcean](https://www.digitalocean.com/?refcode=efb0b61918fa)),
and start getting Discourse up and running in a few minutes:```bash
# Install docker
open http://docs.docker.io/en/latest/installation/ubuntulinux/#ubuntu-raring# Install postgresql-client for management-tasks
sudo apt-get install postgresql-client# Install supervisor, the process manager
sudo apt-get install python-pip
sudo pip install supervisorgit clone https://github.com/srid/discourse-docker.git
cd discourse-docker# Pull the docker images (expect this to download a few megabytes)
make pull # or `make build` if you want to locally build them# Configure your discourse site domain (DISCOURSE_HOST)
more etc/env
echo 'export DISCOURSE_HOST=mysite.com:5000' > .env
# OPTIONAL: email support via postmarkapp.com.
# later, add the 'From' address to Discourse admin settings.
echo 'export POSTMARK_API_KEY=' >> .env# Start supervisor on a separate terminal window. This will
# automatically start the redis and postgresql containers.
make supervisor# Verify that redis-server and postgres are running.
# Note: bin/sup is alias to `sudo supervisorctl`.
bin/sup status# Setup the discourse database and compile static assets.
# Note: postgres data is at data/postgres; discourse public/
# (containing uploaded files) directory is mounted from
# data/discourse-public.
bin/discourse-start setup# Finally, start discourse, sidekiq and nginx
bin/sup start discourse sidekiq nginx# Discourse is now running; launch the discourse site URL.
make info# After signing up for an account, make yourself an admin:
bin/make-admin myusername
```Upgrading to newer Discourse versions
-----1. Set `DISCOURSE_VERSION` in discourse/Dockerfile to the appropriate version
2. Rebuild the images using `make build`
3. Stop supervisord, clean up running docker containers, and run `make supervisord`
4. Run `bin/discourse-start setup` (this will run rake db:migrate)
5. Run `bin/discourse-start "bundle exec rake assets:precompile"`
6. Start discourse and the rest: `bin/sup start all`
Migration
---------To migrate from an existing Discourse forum:
0. Start only postgresql,redis
1. Take a snapshot of the database and import it right after starting
the postgresql container.
2. Run `bin/discourse-start setup`. If the assets creation step fails,
try re-running it using `bin/discourse-start "bundle exec rake
assets:precompile"`.
3. Import public/uploads directory into data/discourse-public/uploads4. Start everything: bin/sup start all