Created
November 25, 2017 22:11
-
-
Save mraaroncruz/5d3b4f5030e1dc14a7421de9a7641c8e to your computer and use it in GitHub Desktop.
docker compose for discourse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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