gzip -cdr docker-open-haus.tgz | docker image import - openhaus/backend
docker image save openhaus/backend:latest | gzip > docker-open-haus.tgz
npm run build:docker-image
docker run --rm --name=backend --env=DATABASE_HOST=<database host> --expose 8080 openhaus/backend
See environment variables for more configuration.
To import the sample database dump:
docker cp demo-database.gz backend_database_1:/
docker exec -i backend_database_1 mongorestore --archive=/demo-database.gz
See https://davejansen.com/how-to-dump-restore-a-mongodb-database-from-a-docker-container/ for more information
docker-compose up
* Commands must be run inside the source code folder. (Download it from github: https://github.com/OpenHausIO/backend)