My first fullstack app. FastAPI is the backend. NGINX is the reverse proxy and static server. Svelte or another frontend framework (TBD). MongoDB is the primary database. Redis for session storage. Dockerized. Currently WIP.
To run as a docker container, open the main project directory and run the following commands, then go to http://localhost to visit the service. Entering http://localhost:3000 will load the Svelte frontend app instead of the NGINX frontend app.
docker-compose build
docker-compose up -d
Alternatively:
docker-compose up --build -d
To turn the container off:
docker-compose down
The backend, frontends, and DBs are all mounted, as per docker-compose.yml.