What you need
- Git and a github account (with an SSH key)
- Docker (Linux / Mac / Windows) and an account
- An IDE or editor of your choice (Cursor, SublimeText, Vim...)
Gitlab
You need to create your private and public keys
cd ~/.ssh
ssh-keygen -t ed25519 -C "<comment>"Go to your gitlab profile and copy/paste your public key
Source Code
cd ~ && mkdir -p lab && cd lab
git clone git@github.com:lbuguellou/map_poc.git
cd map-streamlit && cp .env.example .env
cd map-fastapi && cp .env.example .envnotes:
- Configure your .env to use local services like openai, google api...
Hosts
Add those entries to your host file
127.0.0.1 map.solutions
127.0.0.1 api.solutionscd ~/lab/map-poc/docker-python
docker-compose upnotes:
- Use the
-doption to detach the process, but for the first time, it is a good idea to see the output - Use the
--build --force-recreateoptions to force the re-creation of the containers
if needed:
- Use
docker exec -it map.solutions bashto access the container web (streamlit) - Use
docker exec -it api.solutions bashto access the container web (fastapi) - Use
docker exec -it redis bashto access the container redis
With your browser, go to http://map.solutions:80/
With your browser, go to http://api.solutions:81/
Transfer errors to laetitiabug@gmail.com or update this doc if needed