Fullstack app container using Fastapi, Svelte, Postgres, Redis, and Docker.
git clone https://github.com/olaracode/fast-svelte-docker
cp .env.example .env
POSTGRES_USER
, POSTGRES_PASSWORD
, POSTGRES_DB
to your desired values.Both the KEY
and REFRESH_KEY
are used to sign the JWT tokens, you can generate them using the following command.
We use the simple openssl
command to generate the keys.
openssl rand -hex 32
docker-compose up --build
DB Migrations
docker-compose exec web alembic revision --autogenerate
DB Upgrade
docker-compose exec web alembic upgrade head
docker-compose up --build
docker-compose exec <service_name> bash
docker-compose down -v
docker-compose up --build
docker-compose up --build -V
docker-compose up --force-recreate