Hub de Sensores web.sensoriando.com.br
Requirement Sensoriando Core
- Create docker's images
docker-compose build
- Docker
docker-compose up -d
- Environment Create .env file
touch .env
Contexts .env file:
export POSTGRES_HOST=sensoriando_database
export POSTGRES_USER=postgres
export POSTGRES_PASSWORD=[your password]
export POSTGRES_DB=sensoriando
export POSTGRES_PORT=5432
export DJANGO_PORT=8000
export DJANGO_PARAMS=""
export DJANGO_DEBUG="True"
- Django Migrate
docker exec -it sensoriando_webservice python manage.py makemigrations
docker exec -it sensoriando_webservice python manage.py migrate
- Reload
docker-compose restart