Name: docker-hackmd
Owner: Open Knowledge Foundation Germany
Description: docker hackmd image
Forked from: hackmdio/docker-hackmd
Created: 2017-11-30 13:21:17.0
Updated: 2017-11-30 13:21:19.0
Pushed: 2017-11-28 00:59:37.0
Homepage: null
Size: 83
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Debian based version:
Alpine based version:
See more here: https://docs.docker.com/
git clone https://github.com/hackmdio/docker-hackmd.git
docker-hackmd
directorydocker-compose up
in your terminalHTTP Server listening at port 3000
, it will take few minutes based on your internet connection.Start your docker and enter the terminal, follow below commands:
ocker-hackmd ## enter the directory
pull ## pull new commits
er-compose pull ## pull new containers
er-compose up ## turn on
We don't use LZString to compress socket.io data and DB data after version 0.5.0. Please run the migration tool if you're upgrading from the old version.
docker-compose.yml
, add expose ports 5432
to hackmdPostgres
docker-compose up
to start your hackmd containersmigration-to-0.5.0
and npm install
(see more on above link)config.json
in migration-to-0.5.0
, change its username
, password
and host
to your dockerdocker-compose.yml
, remove expose ports 5432
in hackmdPostgres
docker-hackmd
, update to version 0.5.0 (see below)Start your docker and enter the terminal, follow below commands:
ker-compose exec hackmdPostgres pg_dump hackmd -U hackmd > backup.sql
Similar to backup steps, but last command is
backup.sql | docker exec -i $(docker-compose ps -q hackmdPostgres) psql -U hackmd
The default setting would use pre-build docker image, if you want to build your own containers
uncomment the build
section in the docker-compose.yml
and edit the config.json
.
If you change the database settings and don't use the HMD_DB_URL
make sure you edit the .sequelizerc
.
View license information for the software contained in this image.
This image is officially supported on Docker version 17.03.1-CE.
Support for older versions (down to 1.12) is provided on a best-effort basis.
Please see the Docker installation documentation for details on how to upgrade your Docker daemon.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You can also reach many of the project maintainers via the hackmd
channel on Gitter.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Happy HackMD :smile: