Classificação de Agravos Reais Objetiva e Ligeira
Uma Aplicação idealizada e desenvolvida por https://github.com/filiperochalopes com a colaboração de:
- https://github.com/brennoflavio (Desenvolvedor)
Utilitário Web para triagem de pessoas por sinais, tendo como referência consultável o Protocolo do Hospital de Brasília. Mais informações e Live: https://carol.orango.io
Em breve V2
-> docker-compose.yml > Docker orchestration file
-> backend/Dockerfile > Main dockerfile for backend
-> frontend/Dockerfile > Main dockerfile for frontend
Securing database
- Change db name, password, and user on
docker.compose.yml
, atservices.db.environment
- Change host port on
docker-compose.yml
atservices.db.ports.0
. Schema is host:container, so if you want your database exposed on 3307, ports will be 3307:3306 - Change db string on
docker-compose.yml
atservices.backend.environment.SQL_ALCHEMY_CONN
. Schema ismysql://user:password@host:port/dbname
- Change SQL_ALCHEMY_CONN env var on
backend/.env
Setting up database
- On one terminal, up database
docker-compose build
docker-compose up
- On another terimnal, run:
docker-compose exec backend sh apply_migration.sh
You'll see:
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 8b28bc483f45, first migration
- Insert data
docker-compose exec backend python populate_db.py
You should see no outputs
- Close db typing
ctrl + c
on first terminal
If you want to change backend port from 5000:
- Configure proper backend port at
backend/Dockerfile
- Configure
backend/entrypoint.sh
ebackend/entrypoint-dev.sh
changing its ports - Change expose port on
dockerfile.yml
, onservices.backend.ports.0
- Make sure port changed on backend is same on
frontend/.env.development
andfrontend/.env.production
If you want to change frontend port from 80:
- Edit
frontend/Dockerfile
to exporte another port, and to CMD to another port - Change
docker-compose.yml
to reflect your new port, onservices.frontend.ports.0
- Change expose port on
dockerfile.yml
, onservices.frontend.ports.0
To build:
docker-compose build
To run:
docker-compose up -d
To stop:
docker-compose stop