ProjectCED / CED-LLM

Classify and Enhance Data with LLM - Project for Tampere University course Software Engineering Project. Working with Solita.
MIT License
0 stars 0 forks source link

Dockerize project #118

Open janivanhala opened 2 weeks ago

janivanhala commented 2 weeks ago

Fill out dockerfiles and docker-compose correctly to create frontend <-> backend <-> database environment.

Ports handled correctly. Hope no hardcoded ports in backend/database.

Important database related:

janivanhala commented 21 hours ago

Docker installed and running. Then next command in project root folder:

# normal
docker-compose up
# force rebuild
docker-compose up --build

# shutdown
docker-compose down
# shutdown and remove volumes (mainly to reset database related stuffs)
docker-compose down -v 

Progress:

Image

janivanhala commented 5 hours ago

Changed .env variable naming. It seemed to conflict with NEO4J_ stuff.

Neo4j community version only allows one user: 'neo4j'. Password is changeable.

Only frontend's port: 5173 open outside of docker environment. Also frontend can only communicate to backend and database can only communicate to backend. Connection isolation: Outside <-> Frontend <-> Backend <-> Database.

There are many things relating to "dev"-use, unsure if these need to be changed in the end.