Skip to content

Instantly share code, notes, and snippets.

@Bill Bill/docker-compose.yml
Last active May 2, 2019

Embed
What would you like to do?
Run a local Hypothes.is annotation server (and the services it needs) via docker-compose
# This docker-compose.yml will run the Hypothes.is annotation server.
# (adapted from instructions here https://h.readthedocs.org/en/latest/INSTALL.html)
#
# Place this file in the working directory (clone of https://github.com/hypothesis/h)
# run with docker-compose up -d
#
# Now browse to Hypothes.is at http://192.168.59.103:8000/ and create an account
# You'll see the invitation email in Mailcatcher at http://192.168.59.103:1080/
# Click that invitation link and log in on your local Hypothes.is
# And you are ready to annotate!
hh:
image: hypothesis/h
environment:
DATABASE_URL: postgresql://postgres:foo@postgres/postgres
MAIL_PORT_25_TCP_ADDR: 192.168.59.103
MAIL_PORT_25_TCP_PORT: 25
MODEL_CREATE_ALL: true
ports:
- "8000:8000"
links:
- postgres
- elasticsearch
- nsqd
- redis
- mail
elasticsearch:
image: nickstenning/elasticsearch-icu
nsqd:
image: nsqio/nsq
ports:
- "4150"
- "4151"
command: /nsqd
redis:
image: redis
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: foo
mail:
image: schickling/mailcatcher
ports:
- "1080:1080"
- "25:1025"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.