https://github.com/toggle-corp/na-toolbox
https://github.com/toggle-corp/na-toolbox
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toggle-corp/na-toolbox
- Owner: toggle-corp
- Created: 2017-07-23T19:47:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T08:48:57.000Z (over 2 years ago)
- Last Synced: 2025-01-09T07:13:03.298Z (4 months ago)
- Language: HTML
- Size: 2.67 MB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Needs Assessment Toolbox
Needs Assessment Toolbox website for UNHCR
## Installation
### Requirements
* [Docker (1.13.0+)](https://docs.docker.com/engine/installation/)
* [docker-compose](https://github.com/docker/compose/releases)### Build docker image
```
$ docker-compose build
```### Running locally
```
$ docker-compose up
```### Running on production
Copy *production.envsample* to *production.env* and modify the environment settings to match postgres database settings.
Make sure to also modify `ALLOWED_HOST`.
The production configuration for docker-compose is in *production.yml*.
Some of the usefull `docker-compose` commands
```
$ docker-compose -f production.yml pull # Pull images from docker hub instead of building
$ docker-compose -f production.yml build # Build images from docker hub instead of pulling
$ docker-compose -f production.yml push # Push images to docker hub$ docker-compose -f production.yml up # Start container [Will build images if not exists]
$ docker-compose -f production.yml down # To shut down already running docker image
$ docker-compose -f production.yml down -v # [`Alert`] To shut down already running docker image plus remove persistent volumes```
For Detach mode
```
$ docker-compose -f production.yml up -d # to start container in detach mode
$ docker-compose -f production.yml logs -f # to look at logs
$ docker-compose -f production.yml stop # Stop the containers
```