Last active
July 8, 2022 07:10
-
-
Save Bill/fc94b3814bef00ebf44d to your computer and use it in GitHub Desktop.
Run a local Hypothes.is annotation server (and the services it needs) via docker-compose
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
# 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 | |
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
Hi Bill,
thank you for the yml file. Iam trying to use h for annotating documentation in our internal project so I am running a local h server and client, and I have run into these issues:
I can effectively create users only via terminal tox command. This works but is far from ideal.
Now, I am rather new to docker and setting up a project like that so I have a lot to catch up on.
I enclose my docker-compose.yml with my local ip and ID replaced with
myIP
andmyID
:Is there sth amiss/undefined in the yml file?
I am also totally new to databases and am not sure if postgres environment is correctly configured above.
Nothing is obvious to me, so even if it's simple to you, it may be where I am totally ignorant.
I hope you can assist!
lukasz