Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Created November 25, 2017 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraaroncruz/5d3b4f5030e1dc14a7421de9a7641c8e to your computer and use it in GitHub Desktop.
Save mraaroncruz/5d3b4f5030e1dc14a7421de9a7641c8e to your computer and use it in GitHub Desktop.
docker compose for discourse
# https://github.com/indiehosters/discourse
# https://github.com/indiehosters/docker-discourse/blob/master/Dockerfile
version: '2'
networks:
lb_web:
external: true
back:
driver: bridge
services:
web:
image: nginx
links:
- app
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
environment:
- VIRTUAL_HOST
networks:
- back
- lb_web
app:
image: indiehosters/discourse
volumes:
- ./data/assets:/usr/src/app/public/assets
- ./data/uploads:/usr/src/app/public/uploads
- ./data/backups:/usr/src/app/public/backups
links:
- postgres
- redis
env_file:
- ./env
environment:
- DISCOURSE_HOSTNAME=$VIRTUAL_HOST
networks:
- back
sidekiq:
image: indiehosters/discourse
command: bundle exec sidekiq -q critical -q default -q low -v
links:
- postgres
- redis
env_file:
- ./env
environment:
- DISCOURSE_HOSTNAME=$VIRTUAL_HOST
volumes_from:
- app
networks:
- back
postgres:
image: postgres:9.4.8
env_file:
- ./env
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
- back
redis:
image: redis:3
networks:
- back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment